dbTalk Databases Forums  

creating tables info. please

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss creating tables info. please in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Totti
 
Posts: n/a

Default creating tables info. please - 01-08-2008 , 05:44 AM






hi all,
i have some big tables i am generating in excel, and i want to create
them in my DB, since they are many and every one is >20 000 rows,
i want to ask if there is any way to expand the amounts of rows oracle
takes in every copy - paste.
because as my settings are now, when copying and pasting, oracle has a
very limited number of rows that can be inserted, a time.
can this limit be extended and how?
Thanks for any help

Reply With Quote
  #2  
Old   
Charles Hooper
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 05:53 AM






On Jan 8, 6:44*am, Totti <saliba.toufic.geo... (AT) gmail (DOT) com> wrote:
Quote:
hi all,
i have some big tables i am generating in excel, and i want to create
them in my DB, since they are many and every one is >20 000 rows,
i want to ask if there is any way to expand the amounts of rows oracle
takes in every copy - paste.
because as my settings are now, when copying and pasting, oracle has a
very limited number of rows that can be inserted, a time.
can this limit be extended and how?
Thanks for any help
How are you pasting the rows into Oracle?

If you have Microsoft Access, one simple method is:
* Create a link to the Excel spreadsheet in Access
* Create a link to the Oracle table in Access
* Create a simple query in Access that selects all rows from the Excel
spreadsheet
* Modify the query type of the simple query to be an append query, and
instruct it to append to the Oracle table
* Excute the simple query that has been modified to be an append query
Access will insert all of the rows from the Excel spreadsheet into the
Oracle table without requiring copy and paste.

Another method is to use a macro in Excel to insert each row into the
Oracle database, but this is a bit more difficult to code than the
above method.

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.


Reply With Quote
  #3  
Old   
Charles Hooper
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 05:53 AM



On Jan 8, 6:44*am, Totti <saliba.toufic.geo... (AT) gmail (DOT) com> wrote:
Quote:
hi all,
i have some big tables i am generating in excel, and i want to create
them in my DB, since they are many and every one is >20 000 rows,
i want to ask if there is any way to expand the amounts of rows oracle
takes in every copy - paste.
because as my settings are now, when copying and pasting, oracle has a
very limited number of rows that can be inserted, a time.
can this limit be extended and how?
Thanks for any help
How are you pasting the rows into Oracle?

If you have Microsoft Access, one simple method is:
* Create a link to the Excel spreadsheet in Access
* Create a link to the Oracle table in Access
* Create a simple query in Access that selects all rows from the Excel
spreadsheet
* Modify the query type of the simple query to be an append query, and
instruct it to append to the Oracle table
* Excute the simple query that has been modified to be an append query
Access will insert all of the rows from the Excel spreadsheet into the
Oracle table without requiring copy and paste.

Another method is to use a macro in Excel to insert each row into the
Oracle database, but this is a bit more difficult to code than the
above method.

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.


Reply With Quote
  #4  
Old   
Charles Hooper
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 05:53 AM



On Jan 8, 6:44*am, Totti <saliba.toufic.geo... (AT) gmail (DOT) com> wrote:
Quote:
hi all,
i have some big tables i am generating in excel, and i want to create
them in my DB, since they are many and every one is >20 000 rows,
i want to ask if there is any way to expand the amounts of rows oracle
takes in every copy - paste.
because as my settings are now, when copying and pasting, oracle has a
very limited number of rows that can be inserted, a time.
can this limit be extended and how?
Thanks for any help
How are you pasting the rows into Oracle?

If you have Microsoft Access, one simple method is:
* Create a link to the Excel spreadsheet in Access
* Create a link to the Oracle table in Access
* Create a simple query in Access that selects all rows from the Excel
spreadsheet
* Modify the query type of the simple query to be an append query, and
instruct it to append to the Oracle table
* Excute the simple query that has been modified to be an append query
Access will insert all of the rows from the Excel spreadsheet into the
Oracle table without requiring copy and paste.

Another method is to use a macro in Excel to insert each row into the
Oracle database, but this is a bit more difficult to code than the
above method.

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.


Reply With Quote
  #5  
Old   
Charles Hooper
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 05:53 AM



On Jan 8, 6:44*am, Totti <saliba.toufic.geo... (AT) gmail (DOT) com> wrote:
Quote:
hi all,
i have some big tables i am generating in excel, and i want to create
them in my DB, since they are many and every one is >20 000 rows,
i want to ask if there is any way to expand the amounts of rows oracle
takes in every copy - paste.
because as my settings are now, when copying and pasting, oracle has a
very limited number of rows that can be inserted, a time.
can this limit be extended and how?
Thanks for any help
How are you pasting the rows into Oracle?

If you have Microsoft Access, one simple method is:
* Create a link to the Excel spreadsheet in Access
* Create a link to the Oracle table in Access
* Create a simple query in Access that selects all rows from the Excel
spreadsheet
* Modify the query type of the simple query to be an append query, and
instruct it to append to the Oracle table
* Excute the simple query that has been modified to be an append query
Access will insert all of the rows from the Excel spreadsheet into the
Oracle table without requiring copy and paste.

Another method is to use a macro in Excel to insert each row into the
Oracle database, but this is a bit more difficult to code than the
above method.

Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.


Reply With Quote
  #6  
Old   
Totti
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 06:27 AM



Hi Charles these methods seem very powerful, but i m not sure i know
how to do them, but i think i am using something 95% similar to the
second methos you talked about, the 'macro' one.
i just wrote a VBA, with an insert into formula in Excel, so i
generate the data in excel, i save the rows in a txt file and from
there i do a crete table in oracle, and i paste the values i have in
the txt so the thing i am copying and pasting is kind of this:
creat table_XXX(
sal_x varchar2(12),
sal_prod ........)
insert into table table_xxx value(....,....,...);
.............
.........
commit;

thats how i know to do it at the present time,
but since you have something better, i would like you to show me some
info. on any valuable documentations about it.
Thanks a lot.

Reply With Quote
  #7  
Old   
Totti
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 06:27 AM



Hi Charles these methods seem very powerful, but i m not sure i know
how to do them, but i think i am using something 95% similar to the
second methos you talked about, the 'macro' one.
i just wrote a VBA, with an insert into formula in Excel, so i
generate the data in excel, i save the rows in a txt file and from
there i do a crete table in oracle, and i paste the values i have in
the txt so the thing i am copying and pasting is kind of this:
creat table_XXX(
sal_x varchar2(12),
sal_prod ........)
insert into table table_xxx value(....,....,...);
.............
.........
commit;

thats how i know to do it at the present time,
but since you have something better, i would like you to show me some
info. on any valuable documentations about it.
Thanks a lot.

Reply With Quote
  #8  
Old   
Totti
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 06:27 AM



Hi Charles these methods seem very powerful, but i m not sure i know
how to do them, but i think i am using something 95% similar to the
second methos you talked about, the 'macro' one.
i just wrote a VBA, with an insert into formula in Excel, so i
generate the data in excel, i save the rows in a txt file and from
there i do a crete table in oracle, and i paste the values i have in
the txt so the thing i am copying and pasting is kind of this:
creat table_XXX(
sal_x varchar2(12),
sal_prod ........)
insert into table table_xxx value(....,....,...);
.............
.........
commit;

thats how i know to do it at the present time,
but since you have something better, i would like you to show me some
info. on any valuable documentations about it.
Thanks a lot.

Reply With Quote
  #9  
Old   
Totti
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 06:27 AM



Hi Charles these methods seem very powerful, but i m not sure i know
how to do them, but i think i am using something 95% similar to the
second methos you talked about, the 'macro' one.
i just wrote a VBA, with an insert into formula in Excel, so i
generate the data in excel, i save the rows in a txt file and from
there i do a crete table in oracle, and i paste the values i have in
the txt so the thing i am copying and pasting is kind of this:
creat table_XXX(
sal_x varchar2(12),
sal_prod ........)
insert into table table_xxx value(....,....,...);
.............
.........
commit;

thats how i know to do it at the present time,
but since you have something better, i would like you to show me some
info. on any valuable documentations about it.
Thanks a lot.

Reply With Quote
  #10  
Old   
news.verizon.net
 
Posts: n/a

Default Re: creating tables info. please - 01-08-2008 , 06:43 AM




"Totti" <saliba.toufic.george (AT) gmail (DOT) com> wrote

Quote:
Hi Charles these methods seem very powerful, but i m not sure i know
how to do them, but i think i am using something 95% similar to the
second methos you talked about, the 'macro' one.
i just wrote a VBA, with an insert into formula in Excel, so i
generate the data in excel, i save the rows in a txt file and from
there i do a crete table in oracle, and i paste the values i have in
the txt so the thing i am copying and pasting is kind of this:
creat table_XXX(
sal_x varchar2(12),
sal_prod ........)
insert into table table_xxx value(....,....,...);
............
........
commit;

thats how i know to do it at the present time,
but since you have something better, i would like you to show me some
info. on any valuable documentations about it.
Thanks a lot.
Use sql loader. See the documentation under utlities. Much faster. Also
it looks like in your example you are storing numbers as text. Don't do
that.
Jim




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.