码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2019-01-28 12:12:45      阅读:1018      评论:0      收藏:0      [点我收藏+]

标签:用户登录   command   comm   core   source   golden   product   pass   ges   

测试环境,初步配置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.

 

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

标签:用户登录   command   comm   core   source   golden   product   pass   ges   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!