PIXNET Logo登入

DanBrother的部落格

跳到主文

歡迎光臨DanBrother在痞客邦的小天地. 部落格文章同步於=> http://blog.xuite.net/gem083/dba

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 2月 02 週二 201611:35
  • Transport Oracle 11g (11.2.0.3) Database to Oracle 12c (12.1.0.2) Database

Transport Oracle 11g (11.2.0.3) Database to Oracle 12c (12.1.0.2) Database
### Source DB Server (Oracle 11g)
# make non-system tablespaces read-only
[oracle@testsrv11g ~]$ . oraenv
ORACLE_SID = [test11g] ?
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(88)

  • 個人分類:Oracle Export/Import
▲top
  • 6月 06 週五 201410:19
  • Solution to ORA-31684: Object type USER:"TESTUSER" already exists

Problem:
Oracle Data Pump Import Data encounters ORA-31684: Object type USER:"TESTUSER" already exists

Solution:
Add "exclude=user" within the impdp command
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(171)

  • 個人分類:Oracle Export/Import
▲top
  • 9月 15 週四 201116:00
  • EXP-00008: ORA-04031:

Problem:  (version of Oracle 8i)
EXP-00008: ORACLE error 4031 encountered 
ORA-04031: unable to allocate 4032 bytes of shared memory ("shared pool","oracle/aurora/rdbms/DbmsJavaSYS","joxlod: in ehe","ioc_allocate_pal")
EXP-00000:
Export terminated unsuccessfully
Solution:
Increase java_pool_size to as lease 20M and rebounce the instance.

(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(48)

  • 個人分類:Oracle Export/Import
▲top
  • 9月 07 週三 201114:07
  • IMP Tables encountered: -bash: syntax error near unexpected token `

Problem:
IMP Tables encountered:  -bash: syntax error near unexpected token `
imp scott/tiger fromuser=wang touser=scott tables=(emp,dept) file=/data/scott_tab.dmp log=/data/scott_tab.log
Solution:  (need to add
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(52)

  • 個人分類:Oracle Export/Import
▲top
  • 7月 28 週四 201111:59
  • Export (Oracle9i) EXP-00056 & ORA-31600 invalid input value EMIT_SCHEMA

Problem:
Encountered EXP-00056 & ORA-31600 invalid input value EMIT_SCHEMA
in Oracle 9.2.0.8
Solution:
@?/rdbms/admin/catexp.sql

shut immediate
startup migrate

** When  a database is started in MIGRATE mode, the following ALTER SYSTEM commands will be set automatically:
ALTER SYSTEM ENABLE RESTRICTED SESSION;
ALTER SYSTEM SET "_SYSTEM_TRIG_ENABLED"=FALSE SCOPE=MEMORY;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0 SCOPE=MEMORY;
ALTER SYSTEM SET AQ_TM_PROCESSES=0 SCOPE=MEMORY;
ALTER SESSION SET NLS_LENGTH_SEMANTICS=BYTE;
**************************************************************************************
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(31)

  • 個人分類:Oracle Export/Import
▲top
  • 7月 25 週一 201111:14
  • EXP-00003: no storage definition found for segment(2,2)

When the rollback segment tablespace (RBS) was convered from dictionary managed to local managed in Oracle8i, exporting the full database might produce the error of EXP-00003: no storage definition found for segment(2,2).
If this is the case, you can convert the RBS back to the dictionary-managed tablespace by executing the SQL command:
exec dbms_space_admin.tablespace_migrate_from_local('RBS');
Then re-run the export command:
SET ORACLE_SID=testdb
exp sys/dba full=y direct=y buffer=100000000 file=d:\export\testdb.dmp log=d:\export\testdb.log
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(27)

  • 個人分類:Oracle Export/Import
▲top
  • 7月 15 週五 201118:27
  • EXP-00091 Exporting questionable statistics

|
EXP-00091 Exporting questionable statistics:
Solution:
exp owne=scott statistics="none"  ....
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(8)

  • 個人分類:Oracle Export/Import
▲top
  • 7月 15 週五 201118:26
  • EXP-00056: ORA-00904: invalid identifier

EXP-00056: ORACLE error 904 encountered ORA-00904: "SYS"."DBMS_EXPORT_EXTENSION"."FUNC_INDEX_DEFAULT": invalid identifier
Solution:
conn / as sysdba
shut immediate
startup migrate
@?/rdbms/admin/catpatch.sql
shut immediate
startup
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(214)

  • 個人分類:Oracle Export/Import
▲top
  • 7月 15 週五 201118:23
  • ORACLE9i Export Errors: exp-00056 & oracle error 942 encountered

 
ORACLE9i Export Errors: exp-00056 & oracle error 942 encountered :
Solution:
@?/rdbms/admin/catexp.sql
@?/rdbms/admin/utlrp.sql
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(54)

  • 個人分類:Oracle Export/Import
▲top
  • 5月 12 週三 201011:14
  • Oracle Data Pump Know-how

-- Create Database Directory
create directory mydump_dir as '/home/orale/mydump'
-- Grant Directory Privileges
grant read,write on DIRECTORY mydump_dir to SCOTT;
-- Query Permissions Granted to the Directory
select * from dba_tab_privs where table_name = UPPER('mydump_dir');
-- Revoke Directory Privileges
revoke read,write on DIRECTORY mydump_dir from SCOTT;
-- Drop the Directory
drop DIRECTORY mydump_dir;
---------------------------------------------------------------------------------------------------------------------

read -s MYPWD
-- Datapump Export (Full Database)

expdp system/$MYPWD@testdb full=y directory=mydump_dir dumpfile=testdb_dump_full.dmp logfile=testdb_dump_full.log
-- Datapump Export (Schema with Data)
expdp system/$MYPWD@testdb 
directory=mydump_dir schemas=scott dumpfile=scott_with_data_exp.dmp logfile=scott_with_data_exp.log

-- Datapump Export (Schema without Data , Metadata Only)
expdp system/$MYPWD@testdb
directory=mydump_dir schemas=scott dumpfile=scott_without_data_exp.dmp logfile=scott_without_data_exp.log content=METADATA_ONLY
-- Datapump Export (Tables & Sequences)
cat dan_objects.par
>>
include=table:"LIKE 'DAN!_TAB!_%' ESCAPE '!'"
include=sequence:"LIKE 'DAN!_TAB%!_SEQ' ESCAPE '!'"
expdp danbrother/$MYPWD@testdb directory=mydump_dir parfile=dan_objects.par  
dumpfile=DANBROTHER_OBJECTS.dmp logfile=DANBROTHER_OBJECTS.log

-- Datapump Export (SQL Query)
cat dan_query.par
>>
query=TEST_TAB:"where orderno in ('100001','100002','100005','100010')"
expdp danbrother/$MYPWD@testdb directory=mydump_dir tables=TEST_TAB parfile=dan_query.par
dumpfile=DISCARDED_ORDERS.dmp logfile=DISCARDED_ORDERS.log 
(繼續閱讀...)
文章標籤

DanBrother 發表在 痞客邦 留言(0) 人氣(102)

  • 個人分類:Oracle Export/Import
▲top
1

廣告

個人資訊

DanBrother
暱稱:
DanBrother
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (58,078)祝福禱告文-為工作祝福
  • (49,259)Excel 2007 中文字顯示亂碼之修復步驟
  • (2,928)ORA-24247: 存取控制清單 (ACL) 拒絕網路存取
  • (626)OSQL公用程式的使用方法
  • (456)Oracle11g Tracefile Housekeeping by ADRCI (Automatic Diagnostic Repository Command Interpreter)
  • (135)FORFILES command to remove older files or folders (Windows Server 2008)
  • (69)srvctl command usage
  • (19)Use EVERYDAY_WINDOW for DEFAULT_MAINTENANCE_PLAN
  • (9)Device Mapper Permissions Setup
  • (5)RPM & SRPM

文章分類

  • Android (1)
  • Java (1)
  • MongoDB (1)
  • MariaDB (7)
  • Python (10)
  • HTML (1)
  • ORDS (1)
  • Apache Tomcat (1)
  • Oracle Streams (1)
  • Javascript (1)
  • Oracle Data Guard (2)
  • Oracle VirtualBox (3)
  • Grid Infrastructure (4)
  • Oracle SQL Tuning (6)
  • OEM11g / 12c (28)
  • IT Links (1)
  • 心靈饗宴 (161)
  • Oracle Clusterware (5)
  • ORACLE RAC (21)
  • Oracle ASM (18)
  • Oracle Export/Import (10)
  • MySQL (22)
  • Windows Series (18)
  • Oracle HTTP Server (8)
  • Linux (49)
  • Microsoft Office (6)
  • SQL SERVER (19)
  • Install Apache & PHP (2)
  • Oracle in General (111)
  • RMAN (15)
  • SQL / PL/SQL (30)
  • 未分類文章 (1)

最新文章

  • MySQL Array Simulation in Stored Procedure
  • Extracts, orders, and then prints grants for MySQL user accounts (pt-show-grants)
  • MySQL Stored Procedure - Nested Loop Example
  • Metabase H2 DB Migration to MySQL 5.7
  • Steps for Upgrading Percona-Toolkit to the Latest Version
  • MySQL Slave - Skip Replication for A Particular Table
  • MySQL - Export & Import Table Data Based on the SQL Query
  • MySQL Table Fragmentation Detection and De-fragmentation Implementation
  • Multiple Log File Viewer (Linux Bash)
  • Solving MySQL slave lag Issues

最新留言

  • [21/08/16] jwang0189 於文章「祝福禱告文-為工作祝福...」留言:
    非常實用的文章,謝謝提供,已點廣告表示支持 https://...
  • [20/04/23] 廣利 於文章「祝福禱告文-為工作祝福...」留言:
    129:8 過路的也不說,願耶和華所賜的福,歸於你們;我們在...
  • [17/10/30] 66國語言翻譯公司 於文章「Download Google Chro...」留言:
    不了走會點中見你隻有果新家而去十走相隻把見作樣 95國...
  • [17/05/06] 50國語言翻譯公司 於文章「Python >>> a, b = b...」留言:
    之的不會然文道果三那大這年來來年物月用理學, 115國...
  • [16/10/13] KK 於文章「How to Change Defaul...」留言:
    感謝您分享的工作禱詞! 真的太感謝了!! 願 平安...
  • [15/08/23] 洪秀柱 於文章「如何在UltraEdit中正常顯示韓文?...」留言:
    此破解法可用於 UEstudio UltraEdit V2...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣:

留言板