mysql zhs16gbk_谨慎修改Oracle数据库字符集(UTF8<->ZHS16GBK)

1 SQL> select *from dba_directories;2

3 OWNER DIRECTORY_NAME4 ------------------------------ ------------------------------

5 DIRECTORY_PATH6 --------------------------------------------------------------------------------

7 SYS ORACLE_OCM_CONFIG_DIR8 /u01/app/oracle/product/11.2.0/db_1/ccr/state9

10 SYS DATA_PUMP_DIR11 /u01/app/oracle/admin/ogg/dpdump/

12

13 SYS XMLDIR14 /u01/app/oracle/product/11.2.0/db_1/rdbms/xml15

16

17 SQL> create directory datapump as '/u01/';18

19 Directory created.20

21 SQL> grant read,writeon directory datapump to zlm;22 grant read,writeon directory datapump to zlm23 *

24 ERROR at line 1:25 ORA-01749: you may not GRANT/REVOKE privileges to/from yourself26

27

28 SQL> conn /as sysdba29 Connected.30 SQL> grant read,writeon directory datapump to zlm;31

32 Grant succeeded.33

34 SQL>exit35 Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -64bit Production36 With the Partitioning option37 [oracle@ogg ~]$ expdp zlm/zlm directory=datapump dumpfile=zlm_datapump_`date +%Y%m%d`.dmp logfile=zlm_datapump_`date +%Y%m%d`.log schemas=zlm38

39 Export: Release 11.2.0.1.0 - Production on Wed Jul 11 12:51:06 2018

40

41 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.42

43 Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 -64bit Production44 With the Partitioning option45 Starting "ZLM"."SYS_EXPORT_SCHEMA_01": zlm/******** directory=datapump dumpfile=zlm_datapump_20180711.dmp logfile=zlm_datapump_20180711.log schemas=zlm46 Estimate in progress using BLOCKS method...47 Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA48 Total estimation using BLOCKS method: 64 KB49 Processing object type SCHEMA_EXPORT/USER50 Processing object type SCHEMA_EXPORT/SYSTEM_GRANT51 Processing object type SCHEMA_EXPORT/ROLE_GRANT52 Processing object type SCHEMA_EXPORT/DEFAULT_ROLE53 Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA54 Processing object type SCHEMA_EXPORT/TABLE/TABLE55 Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX56 Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT57 Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS58 Processing object type SCHEMA_EXPORT/TABLE/COMMENT59 . . exported "ZLM"."TEST_CHARSET" 5.414 KB 1 rows60 Master table "ZLM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded61 ******************************************************************************62 Dump file set for ZLM.SYS_EXPORT_SCHEMA_01 is:63 /u01/zlm_datapump_20180711.dmp64 Job "ZLM"."SYS_EXPORT_SCHEMA_01" successfully completed at 12:51:3165

66 [oracle@ogg ~]$ cd /u0167 [oracle@ogg u01]$ ls -l68 total 20069 drwxrwxr-x 4 oracle oinstall 4096 May 19 2017 app70 drwxrwxr-x 3 oracle oinstall 4096 Mar 29 15:40 arch71 drwxrwxr-x 14 oracle oinstall 4096 Feb 7 17:01 ogg72 -rw-r----- 1 oracle oinstall 184320 Jul 11 12:51 zlm_datapump_20180711.dmp73 -rw-r--r-- 1 oracle oinstall 1500 Jul 11 12:51 zlm_datapump_20180711.log74 [oracle@ogg u01]$

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值