Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Found 3 tips, Displaying 1 - 3 
 
Sort by 
 
 Generate a script to create users from exp dump file
I usually run full export with ROWS=N on a development database before refreshing it from production, that way I can always re-create the users and schema objects from that exp dump file. $ grep -i 'create role' [dump_file] > create_users.sql $ grep -i 'create user' [dump_file] >> create_users.sql $ grep -i '^grant' [dump_file] ...
 More...
10/26/06
 
 
 Example exp parfile for Oracle full export
Here's an example of parfile for exporting the whole database without data (no rows): FILE=DBNAME.dmp COMPRESS=N ROWS=N LOG=DBNAMEexp.log FULL=Y Run from command line: $ . oraenv $ ORACLE_SID = [DBNAME] ? $ $ exp parfile=DBNAMEexp.par Export: Release 8.1.7.4.0 - Production on Wed May 10 10:20:48 2006 (c) Copyright 2000 Oracle Corporation. All rights reserved. Username: / as sysdba
     
More...

05/10/06
 
 
 Compress during export
Example of exporting via a named pipe: $ /sbin/mknod /tmp/compress_pipe p $ gzip -c < /tmp/compress_pipe >/opt/ora/export/SID/test_SID_via_pipe.dmp.gz & $ exp [username]/[password]@[database] full=y file=/tmp/compress_pipe
 More...
10/03/05
 
 


Recent tips & tricks
Miscellaneous > Middleware > Oracle Fusion Middleware > Oracle SOA Suite : Cannot connect to database whe...
Databases > Oracle : How to identify semaphors and ...
Databases > Oracle > Oracle 10g : How to drop tablespace with da...
Databases > Oracle : How to move an index to anothe...

More categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com