User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 426,133 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,773 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser: Programming Forums
Views: 1694 | Replies: 5
Reply
Join Date: Mar 2007
Posts: 45
Reputation: satish.paluvai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
satish.paluvai satish.paluvai is offline Offline
Light Poster

Help challenge....

  #1  
Apr 11th, 2007
hi,

how to export a table from sql*plus to an secondary memory like
cd ,floppy or hard disk. I challeneged with my friend I will tell u in a
week. if anybody knows please give the commands and what i need to do after creating a table in sql*plus. I am using oracle 8i software.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2005
Location: Nebraska, U.S.
Posts: 190
Reputation: stupidenator is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
stupidenator's Avatar
stupidenator stupidenator is offline Offline
Junior Poster

Solution Re: challenge....

  #2  
Apr 11th, 2007
spool c:\anywhere\you\want\file.txt

SELECT *
FROM sql_statement;

spool off

Then you can go to that directory and open it in notepad, or open it in Microsoft Excel and format it.
Reply With Quote  
Join Date: Mar 2007
Posts: 45
Reputation: satish.paluvai is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
satish.paluvai satish.paluvai is offline Offline
Light Poster

Re: challenge....

  #3  
Apr 12th, 2007
Originally Posted by stupidenator View Post
spool c:\anywhere\you\want\file.txt

SELECT *
FROM sql_statement;

spool off

Then you can go to that directory and open it in notepad, or open it in Microsoft Excel and format it.


then what is the use of export and import commands?
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,290
Reputation: debasisdas is on a distinguished road 
Rep Power: 4
Solved Threads: 83
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: challenge....

  #4  
Jun 6th, 2007
Do u want to take database backup or just copy the data to a text file ?

If u want the 2nd one then u can go with stupidenator

But when u say EXPORT it means taking database back up.
for this

SQL>HOST

U will get a black screen

type
EXP USERNAME/PASSWORD
THEN FOLLOW THE INSTRUCTIONS.

FOR HELP U CAN TYPE
EXP HELP=Y

Hope that helps you
Share your Knowledge.
Reply With Quote  
Join Date: Mar 2007
Posts: 32
Reputation: karan_21584 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karan_21584 karan_21584 is offline Offline
Light Poster

Re: challenge....

  #5  
Jun 14th, 2007
hai satish....me too need this SOLUTION plz.... right i m studying my final year UG degree. i have developed my project in VB and ORACLE 8i...now i want to execute my project in my college.... now wts the problem is i have to create tables every time in another system.... so i want to bind the selected tables (example,.. table1,table2,table3,emp_table.....) and want to extract in the naive user system.....help me plzzzzzzzzzzzzzz..how to do this........
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,290
Reputation: debasisdas is on a distinguished road 
Rep Power: 4
Solved Threads: 83
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Nearly a Posting Virtuoso

Re: challenge....

  #6  
Jul 14th, 2007
dear karan to solve the problem you are facing just follow the process described above and u you get a exported file with extension .DMP

next u can import all of your tables from that fiel to re create your entire database or only specific tables (depends on type of export choosen).

any where u need to run your application just use the IMPORT utility of oracle

SQL> host

import username/password@hoststring

then just follow the steps as prompted.
Share your Knowledge.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Oracle Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 4:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC