0

Am trying to migrate my oracle database to a AWS Redshift cluster, and am following the steps as documented here in the AWS website.

When I try to create a project in AWS Schema Conversion Tool, configure for Oracle (running in my laptop), am unable to get successfull connection, and here is the error

Connection to 'jdbc:oracle:thin:@localhost:1521:orcl' wasn't established. ERROR: code: 28009; message: ORA-28009: connection as SYS should be as SYSDBA or SYSOPER

Please note that in Schema Conversion Tool project page, I don't see a section "Connect as SYSDBA" option? I tried with some other sample users such as SCOTT, and I get Insufficient privileges.

enter image description here With the same configurations am able to connect from a sql client, SQLWorkbench.

Appreciate any help please. Thanks

4

2 回答 2

2

To connect to Schema conversion tool you need a user having permissions as connect ,select_catalog_role and select any dictionary. Make sure these permissions are set correctly. Either create a new user with these permissions or modify rights of exiting user. SYS\SYSDBA will not be helpful.

As you are in localhost, with given permissions, you should be able to connect.

于 2018-04-23T18:02:43.657 回答
0

You can also connect using sys, in user name field provide the user name like this

sys as sysdba

As per the AWS documentation if Oracle is a source DB then user should be created like this.

CREATE USER oracle_sct_user IDENTIFIED BY password;

GRANT CONNECT TO oracle_sct_user;
GRANT SELECT_CATALOG_ROLE TO oracle_sct_user;
GRANT SELECT ANY DICTIONARY TO oracle_sct_user;

and AWS DMS requires oracle user to have some privileges, detail can be found here.

https://docs.aws.amazon.com/dms/latest/sbs/CHAP_Oracle2PostgreSQL.Steps.ConfigureOracle.html

enter image description here

于 2020-03-10T11:30:48.020 回答