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

Posted lvcha001

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR: Unable to connect to database using user ogg. Please check privileges.相关的知识,希望对你有一定的参考价值。

测试环境,初步配置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是否存在问题

[[email protected] 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
[[email protected] ogg]$ env|grep SID
ORACLE_SID=t2  发现sid不同,home/base已排除

3.0 修改oracle_sid

[[email protected] ogg]$ vi ~/.bash_profile 
修改oracle_sid内容
[[email protected] ogg]$ source ~/.bash_profile 

[[email protected] ogg]$ echo $ORACLE_SID
a11204 
[[email protected] 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.的主要内容,如果未能解决你的问题,请参考以下文章

OpenStack错误:Error: unable to connect to node rabbit@localhost: nodedown

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

fatal: unable to access 'https://xxxxx': SSL connect error

SVN:Unable to connect to a repository at URL 'xxx' Error running context: An error occurred

[Linux]RabbitMQ - 解决Error: unable to connect to node rabbit@localhost: nodedown

How to solve MB SD Connect C4 EPC application error “Unable to launch the application”