質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Oracle Database 11g

Oracle DatabaseはRDBMSの商品です。具体的な発売商品として知られているのが、 Oracle9i、Oracle10g、Oracle 11gとOracle 12cです。

Q&A

解決済

1回答

3755閲覧

[CentOS 6.6] Oracle Database 11g Expressでのcreatedb.sh失敗

akihiro0117

総合スコア32

Oracle Database 11g

Oracle DatabaseはRDBMSの商品です。具体的な発売商品として知られているのが、 Oracle9i、Oracle10g、Oracle 11gとOracle 12cです。

0グッド

0クリップ

投稿2017/04/02 05:54

CentOS release 6.6 (Final)

Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
をインストールしました。

他のサーバー上のAL16UTF16のデータベースをインポートしたいのですが、AL32UTF8でデータベースが出来ているようなので、作り直そうとしています。

以下のようにcreated.shを実行しましたが、エラーになりました。
どのように対処すればいいでしょうか?

sudo usermod -G dba oracle sudo su - oracle sqlplus "/ as sysdba” SQL> shutdown immediate SQL> startup restrict mount SQL> drop database; SQL> quit [as@localhost dbs]$ sudo su - oracle . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
-bash-4.1$ createdb.sh -dbchar AL16UTF16 ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE Existing database will be erased, hit ctrl-c within 10 secs to cancel SQL*Plus: Release 11.2.0.2.0 Production on 日 4月 2 14:42:33 2017 Copyright (c) 1982, 2011, Oracle. All rights reserved. SQL> SQL> アイドル・インスタンスに接続しました。 SQL> ORACLEインスタンスが起動しました。 Total System Global Area 392495104 bytes Fixed Size 2226840 bytes Variable Size 125830504 bytes Database Buffers 260046848 bytes Redo Buffers 4390912 bytes SQL> SQL> SQL> SQL> 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 national character set al16utf16 * 行18でエラーが発生しました。: ORA-12706: CREATE DATABASE???????????????????? Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの接続が切断されました。 Database Created SQL*Plus: Release 11.2.0.2.0 Production on 日 4月 2 14:42:41 2017 Copyright (c) 1982, 2011, Oracle. All rights reserved. Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production に接続されました。 specify password for HR as parameter 1: specify default tablespeace for HR as parameter 2: specify temporary tablespace for HR as parameter 3: specify password for SYS as parameter 4: specify log path as parameter 5: DROP USER hr CASCADE * 行1でエラーが発生しました。: ORA-01109: ??????????????????? CREATE USER hr IDENTIFIED BY HR * 行1でエラーが発生しました。: ORA-01109: ??????????????????? ALTER USER hr DEFAULT TABLESPACE USERS * 行1でエラーが発生しました。: ORA-01109: ??????????????????? ALTER USER hr TEMPORARY TABLESPACE TEMP * 行1でエラーが発生しました。: ORA-01109: ??????????????????? GRANT CREATE SESSION, CREATE VIEW, ALTER SESSION, CREATE SEQUENCE TO hr * 行1でエラーが発生しました。: ORA-01109: ??????????????????? GRANT CREATE SYNONYM, CREATE DATABASE LINK, RESOURCE TO hr * 行1でエラーが発生しました。: ORA-01109: ??????????????????? 接続されました。 GRANT execute ON sys.dbms_stats TO hr * 行1でエラーが発生しました。: ORA-01109: ??????????????????? ERROR: ORA-01033: ORACLE initialization or shutdown in progress プロセスID: 0 セッションID: 0、シリアル番号: 0 警告: Oracleにはもう接続されていません。 SP2-0640: 接続されていません。 SP2-0640: 接続されていません。 ****** Creating REGIONS table .... (省略) SP2-0640: 接続されていません。 SP2-0641: "EXECUTE"ではサーバーへの接続が必要です。 SQL> SQL*Plus: Release 11.2.0.2.0 Production on 日 4月 2 14:42:41 2017 Copyright (c) 1982, 2011, Oracle. All rights reserved. SQL> 接続されました。 SQL> grant connect to hr * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> revoke execute on sys.UTL_FILE from public * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> revoke execute on sys.UTL_TCP from public * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> revoke execute on sys.UTL_HTTP from public * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> revoke execute on sys.UTL_SMTP from public * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> grant execute on UTL_FILE to XDB * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SQL> Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの接続が切断されました。 SQL*Plus: Release 11.2.0.2.0 Production on 日 4月 2 14:42:42 2017 Copyright (c) 1982, 2011, Oracle. All rights reserved. SQL> 接続されました。 SQL> SQL> SELECT dbms_registry_sys.time_stamp('utlrp_bgn') as timestamp from dual * 行1でエラーが発生しました。: ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": ????????? DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid DOC> objects in the database. Recompilation time is proportional to the DOC> number of invalid objects in the database, so this command may take DOC> a long time to execute on a database with a large number of invalid DOC> objects. DOC> DOC> Use the following queries to track recompilation progress: DOC> DOC> 1. Query returning the number of invalid objects remaining. This DOC> number should decrease with time. DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6); DOC> DOC> 2. Query returning the number of objects compiled so far. This number DOC> should increase with time. DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED; DOC> DOC> This script automatically chooses serial or parallel recompilation DOC> based on the number of CPUs available (parameter cpu_count) multiplied DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu). DOC> On RAC, this number is added across all RAC nodes. DOC> DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel DOC> recompilation. Jobs are created without instance affinity so that they DOC> can migrate across RAC nodes. Use the following queries to verify DOC> whether UTL_RECOMP jobs are being created and run correctly: DOC> DOC> 1. Query showing jobs created by UTL_RECOMP DOC> SELECT job_name FROM dba_scheduler_jobs DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%'; DOC> DOC> 2. Query showing UTL_RECOMP jobs that are running DOC> SELECT job_name FROM dba_scheduler_running_jobs DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%'; DOC># utl_recomp.recomp_parallel(threads); * 行4でエラーが発生しました。: ORA-06550: ?4??4: PLS-00201: ???UTL_RECOMP.RECOMP_PARALLEL?????????? ORA-06550: ?4??4: PL/SQL: Statement ignored SELECT dbms_registry_sys.time_stamp('utlrp_end') as timestamp from dual * 行1でエラーが発生しました。: ORA-00904: "DBMS_REGISTRY_SYS"."TIME_STAMP": ????????? DOC> The following query reports the number of objects that have compiled DOC> with errors (objects that compile with errors have status set to 3 in DOC> obj$). If the number is higher than expected, please examine the error DOC> messages reported with each object (using SHOW ERRORS) to see if they DOC> point to system misconfiguration or resource constraints that must be DOC> fixed before attempting to recompile these objects. DOC># select COUNT(*) "OBJECTS WITH ERRORS" from obj$ where status = 3 * 行1でエラーが発生しました。: ORA-01219: ?????????????????: ????/???????????????? DOC> The following query reports the number of errors caught during DOC> recompilation. If this number is non-zero, please query the error DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors DOC> are due to misconfiguration or resource constraints that must be DOC> fixed before objects can compile successfully. DOC># select COUNT(*) "ERRORS DURING RECOMPILATION" from utl_recomp_errors * 行1でエラーが発生しました。: ORA-01219: ?????????????????: ????/???????????????? CREATE OR REPLACE FUNCTION local_enquote_name (str varchar2) * 行1でエラーが発生しました。: ORA-01109: ??????????????????? SELECT NULL INTO p_null FROM DBA_OBJECTS * 行22でエラーが発生しました。: ORA-06550: ?22??33: PL/SQL: ORA-01219: ?????????????????: ????/???????????????? ORA-06550: ?22??4: PL/SQL: SQL Statement ignored DROP function local_enquote_name * 行1でエラーが発生しました。: ORA-01109: ??????????????????? BEGIN dbms_registry_sys.validate_components; END; * 行1でエラーが発生しました。: ORA-06550: ?1??7: PLS-00201: ???DBMS_REGISTRY_SYS.VALIDATE_COMPONENTS?????????? ORA-06550: ?1??7: PL/SQL: Statement ignored SQL> 現在はスプールしていません。 SQL> Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Productionとの接続が切断されました。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

Oracle Database 11g Express Editionは、AL16UTF16に対応していないようです。

投稿2017/04/10 13:42

akihiro0117

総合スコア32

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問