Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #!/usr/bin/bash
  2. .
  3. .
  4. .
  5.  
  6. /export/home/app/oracle/product/10.2.0/bin/exp $uname/$passw
  7. FILE="$WORKSPACE"/"$EXP_FILE"
  8. LOG="$EXP_LOG"
  9. TABLES=SYSTEM_PARAMETERS
  10. CONSISTENT=Y
  11. ROWS=Y
  12. INDEXES=Y
  13. CONSTRAINTS=Y
  14. GRANTS=Y ;
  15.  
  16. /export/home/app/oracle/admin/ukediuat/exp >./exp_syspar.sh
  17. Username: USER
  18. Enter DPDADMIN Password:
  19.  
  20. LRM-00116: syntax error at 'TABLES' following '='
  21.  
  22. EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
  23. EXP-00000: Export terminated unsuccessfully
  24.  
  25. TABLES='SYSTEM_PARAMETERS'
  26.  
  27. $ exp tables=system.plan_table file=plan_table.dmp statistics=none
  28.  
  29. Export: Release 11.2.0.2.0 - Production on Tue Feb 17 08:59:05 2015
  30.  
  31. Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
  32.  
  33.  
  34. Username: system
  35. Password:
  36.  
  37. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
  38. With the Partitioning, OLAP, Data Mining and Real Application Testing options
  39. Export done in UTF8 character set and AL16UTF16 NCHAR character set
  40. server uses WE8MSWIN1252 character set (possible charset conversion)
  41.  
  42. About to export specified tables via Conventional Path ...
  43. . . exporting table PLAN_TABLE 4 rows exported
  44. Export terminated successfully without warnings.
  45.  
  46. #!/usr/bin/bash
  47.  
  48. TABLES=$DBUser."TBLTACCOUNTHISTORY"
  49. directory=DATA_PUMP_DIR
  50. dumpfile="ABC.dmp"
  51. logfile="ABC.log"
  52.  
  53. expdp $SysDBUser/$SysDBPassword directory=$directory dumpfile=$dumpfile logfile=$logfile tables=$TABLES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement