测试环境,初步配置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.
原文地址:https://www.cnblogs.com/lvcha001/p/10329367.html
时间: 2024-10-15 12:42:58