Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
database:oracle [2014/01/27 15:36] – [Useful Commands] tmadedatabase:oracle [2017/12/09 01:19] (current) – external edit 127.0.0.1
Line 112: Line 112:
   create or replace directory EXP_DIR as '/opt/oracle/ora_data/custx';                #Create or edit export directory   create or replace directory EXP_DIR as '/opt/oracle/ora_data/custx';                #Create or edit export directory
   create or replace directory DATA_PUMP_DIR as '/opt/oracle/ora_data/custx';          #Create or edit data pump directory   create or replace directory DATA_PUMP_DIR as '/opt/oracle/ora_data/custx';          #Create or edit data pump directory
-  Select username from dba_users;                                                     #To determine der databaseuser/database schema+  select username from dba_users;                                                     #To determine der databaseuser/database schema
      
 ==== Connecting SQL*PLUS with a shell script ==== ==== Connecting SQL*PLUS with a shell script ====
Line 171: Line 171:
      
   sql>set linesize 300                                                                                            #Set linesize (lenght) to 300 (max is 32767)   sql>set linesize 300                                                                                            #Set linesize (lenght) to 300 (max is 32767)
 +  sql>spool /tmp/testfile                                                                                         #Output sql-statement into a file "/tmp/testfile "
 +  sql>spool off                                                                                                   #Swith off output to file
  
database/oracle.1390833387.txt.gz · Last modified: 2017/12/09 01:09 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki