ERROR: Unable to connect to database using user ogg. Please check privileges.

时间:2019-01-28 11:31:58   收藏:0   阅读:1390

测试环境,初步配置ogg,添加ogg用户连接数据库,提示无权限报错。

 

1.0 报错信息

GGSCI (enmo) 1> dblogin userid ogg,password ogg 
ERROR: Unable to connect to database using user ogg. Please check privileges.
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory.

 

2.0 数据库用户登录,权限排查

SQL> create user test001 identified by test001;   

User created.

SQL> 
SQL> grant dba to test001;

Grant succeeded.

从报错字面理解报错信息: 无法连接数据库Ogg用户,请检查权限,数据库没有问题,Ogg是否存在问题

[ogg@enmo ogg]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Sun Jan 27 22:04:48 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> 
SQL> exit
[ogg@enmo ogg]$ env|grep SID
ORACLE_SID=t2  发现sid不同,home/base已排除

3.0 修改oracle_sid

[ogg@enmo ogg]$ vi ~/.bash_profile 
修改oracle_sid内容
[ogg@enmo ogg]$ source ~/.bash_profile 

[ogg@enmo ogg]$ echo $ORACLE_SID
a11204 
[ogg@enmo ogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x64, 64bit (optimized), Oracle 11g on Apr 23 2012 08:32:14

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (enmo) 1> dblogin userid ogg,password ogg 
Successfully logged into database.

 

原文:https://www.cnblogs.com/lvcha001/p/10329367.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!