Skip to Main Content

Japanese

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

小文字のユーザーIDでimpの接続が出来ない

855560Mar 26 2012 — edited Apr 13 2012
小文字のユーザーIDでimpを行うには、どのような指定をすればよいのか、
ご存じの方がいらっしゃいましたら、教えてください。

[現象]
下記のsqlでユーザーIDが小文字のユーザーを作成しました。
CREATE USER "test1"
IDENTIFIED BY "pass1"
DEFAULT TABLESPACE USERS
TEMPORARY TABLESPACE TEMP;

GRANT CONNECT
, UNLIMITED TABLESPACE
, DBA TO "test1";

その後、作成されたユーザーにデータを設定しようと、
下記のimpコマンドを実行しました。
imp test1/pass1@sid file="c:\ABC.DMP" fromuser=ABC touser=test1

すると、次のエラーが発生しました。
IMP-00058: Oracleエラー1017が発生しました。
ORA-01017: invalid username/password; logon deniedユーザー名:

そこで、SQL*Plusで
sqlplus """test1"""/pass1@sid
と指定すると、正常に接続出来ましたので、
impコマンドもSQL*Plusの指定に習い、
imp """test1"""/pass1@sid file="c:\ABC.DMP" fromuser=ABC touser="""test1"""

と実行すると、下記のエラーが発生してしまいます。
LRM-00108: 位置パラメータ値'/pass1@sid'が無効です。

IMP-00022: パラメータ処理に失敗しました。ヘルプを表示するには'IMP HELP=Y'を入力してください
IMP-00000: エラーが発生したためインポートを終了します。


[実行環境]
OS:Windows 2003 Server
oracle client 11.2.0.1

以上です。
よろしくお願いします。

Edited by: user1086012 on 2012/03/26 1:01

Edited by: user1086012 on 2012/03/26 1:13

Edited by: user1086012 on 2012/03/26 1:17
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2012
Added on Mar 26 2012
2 comments
9,160 views