Linux Oracle bash: “sqlplus / as sysdba”: command not found 解决方法
bash: sqlplus: command not found 解决方法
注:本文来源于 《 bash: sqlplus: command not found 解决方法 》
1:问题情况:
2:问题处理
1: 环境变量已经配好,但是仍报错:
1 [oracle@dg1 ~]$ vi .bash_profile
2
3 # .bash_profile
4
5 # Get the aliases and functions
6 if [ -f ~/.bashrc ]; then
7 . ~/.bashrc
8 fi
9
10 # User specific environment and startup programs
11
12 PATH=$PATH:$HOME/bin
13
14 export PATH
15 unset USERNAME
16
17 export EDITOR=vi
18 export ORACLE_SID=dg1
19 export ORACLE_BASE=/u01/app/oracle
20 export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
21 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
22 export PATH=/u01/app/oracle/product/10.2.0/db_1/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
23 export PATH=$ORACLE_HOME/bin:$PATH
242:解决方法:
1 [oracle@dg1 ~]$ sqlplus /nolog
2 bash: sqlplus: command not found
3 [oracle@dg1 ~]$ ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
4 ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed
5 [oracle@dg1 ~]$ su - root
6 Password:
7 [root@dg1 ~]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin
8 [root@dg1 ~]# su - oracle
9 [oracle@dg1 ~]$ sqlplus /nolog
10
11 SQL*Plus: Release 10.2.0.1.0 - Production on Mon May 11 12:51:24 2009
12
13 Copyright (c) 1982, 2005, Oracle. All rights reserved.
14
15 SQL> conn / as sysdba
16 Connected to an idle instance.
17 SQL> startup
18 ORACLE instance started.
19
20 Total System Global Area 167772160 bytes
21 Fixed Size 1218316 bytes
22 Variable Size 79694068 bytes
23 Database Buffers 83886080 bytes
24 Redo Buffers 2973696 bytes
25 Database mounted.
26 Database opened.
27 SQL>
28
29
Linux Oracle bash: “sqlplus / as sysdba”: command not found 解决方法的更多相关文章
- windows下sqlplus / as sysdba报ora-12560的解决方法
环境:win7_64位.数据库版本ORACLE11G_R2 在CMD窗口,使用下面三个命令可正常连接数据库:C:\Users\Administrator> sqplus /nolog C:\Us ...
- [转]Oracle 10g及pro*c相关问题及解决方法(转)
Oracle 10g及pro*c相关问题及解决方法 2008年08月21日 星期四 上午 11:21 最近一直在进行ORACLE 10g和PRO*C的学习. 其中遇到了不少的问题: 现列于此,已备他用 ...
- Oracle用户密码过期和用户被锁解决方法【转】
[原因/触发因素] 确定是由于Oracle11g中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致. [影响和风险] 影响 密码过期后,业务进程连接数据库异 ...
- lsb_release: command not found 解决方法(转)
问题:通过lsb_release -a 是查看linux系统版本时报错,具体的解决办法如下: [root@localhost ~]# lsb_release -a-bash: lsb_release: ...
- [转载]oracle 11g不能导出空表的多种解决方法
原文地址:11g不能导出空表的多种解决方法">oracle 11g不能导出空表的多种解决方法作者:Anlin_Yang ORACLE 11g 用exp命令导出库文件备份时,发现只能导出 ...
- [转]Navicat for oracle 提示 cannot load oci dll,193的解决方法 orcale 11g
Navicat for oracle 提示 cannot load oci dll,193的解决方法 内网有一台windows server 2012,安装了Navicat 11.1.8 连接or ...
- ./configure:command not found 解决方法
有些下载下来的源码没有MAKEFILE文件,但是会有MAKEFILE.IN 和 configure, MAKEFILE文件则由后两个文件生成. 如果执行: $./configure 提示错误:./ ...
- linux使用su切换用户提示 Authentication failure的解决方法& 复制文件时,报cp: omitting directory `XXX'
linux使用su切换用户提示 Authentication failure的解决方法:这个问题产生的原因是由于ubtun系统默认是没有激活root用户的,需要我们手工进行操作,在命令行界面下,或者在 ...
- Oracle 11gR2 用exp无法导出空表解决方法
Oracle 11gR2 用exp无法导出空表解决方法 在11gR2中有个新特性,当表无数据时,不分配segment以节省空间.Oracle 当然在运行export导出时,空表则无法导出,可是还是有解 ...
随机推荐
- Docker --rm 自动清理容器内部临时文件
在Docker容器退出时,默认容器内部的文件系统仍然被保留,以方便调试并保留用户数据. 清除断掉链接的容器缓存
- qt5学习目录
qt5下载与安装,VS2017的环境配置 q ...
- luogu P3235 [HNOI2014]江南乐
传送门 这题又是我什么时候做的(挠头) 首先是个和SG函数有关的博弈论,SG=0则先手必败.显然一堆石子就是一个游戏,而若干堆石子的SG值就是每堆SG的异或和,所以算出每堆石子SG就能知道答案 然后怎 ...
- 第28月第21天 记事本Unicode 游戏编程中的人工智能技术
1. Windows平台,有一个最简单的转化方法,就是使用内置的记事本小程序notepad.exe.打开文件后,点击文件菜单中的另存为命令,会跳出一个对话框,在最底部有一个编码的下拉条. 里面有四个选 ...
- Spark思维导图之资源调度
- AbstractQueuedSynchronizer源码解析
1.简介 AbstractQueuedSynchronizer队列同步器,用来实现锁或者其他同步组件的基础框架 AbstractQueuedSynchronizer使用int类型的volatile变量 ...
- 推荐前端框架 & 模板
BootStrap Semantic UI Pure Amazeui(前后端都有,很丰富) amazeui http://tpl.amazeui.org AdminLTE AdminLTE https ...
- python 微信跳一跳辅助 复现
本来用的是苹果ios得手机,但是步骤较为复杂,没有吃透,最后妥协用了android的机器搞得. 首先找到大牛的github https://github.com/wangshub/wechat_jum ...
- 1259 整数划分 V2
设dp[n]为整数n的分割函数,由五边形定理得到: dp[n] = dp[n-1] + dp[n-2] - dp[n-5] - dp[n-7]…… 我们将其分为两部分计算 第一部分为 :( dp[n- ...
- python,练习乌龟吃鱼
''' 1.首先要有一个画布 2.随机乌龟和鱼的位置 3.移动 ''' import random as r list_x = [0,10] list_y = [0,10] class Turtle: ...
