如何从数据库本机系统命令行模式,进入到oracle数据库超级用户操作界面? - 爱问答

(爱问答)

如何从数据库本机系统命令行模式,进入到oracle数据库超级用户操作界面?

1、需要配置安装VNC,然后通过VNC连接

2、安装和配置VNC 

① 安装vnc

# yum install -y  tigervnc-server tigervnc-server-module libXfont pixman xterm xorg-x11-twm  安装vnc及字体库

# chkconfig  vncserver on     设置开机自动启动

②VNC配置

修改 /etc/sysconfig/vncservers 文件,添加以下内容

# The VNCSERVERS variable is a list of display:user pairs.

#

# Uncomment the lines below to start a VNC server on display :2

# as my 'myusername' (adjust this to your own).  You will also

# need to set a VNC password; run 'man vncpasswd' to see how

# to do that.

#

# DO NOT RUN THIS SERVICE if your local area network is

# untrusted!  For a secure way of using VNC, see this URL:

# http://kbase.redhat.com/faq/docs/DOC-7028

 

# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.

 

# Use "-localhost" to prevent remote VNC clients connecting except when

# doing so through a secure tunnel.  See the "-via" option in the

# `man vncviewer' manual page.

 

# VNCSERVERS="2:myusername"

# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"

VNCSERVERS="1:root"

VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp -depth 24"

# -alwaysshared代表允许多用户同时登录 -depth代为色深,参数有8,16,24,32  

#红色为新增内容

 

③ 设置VNC密码

# vncpasswd 

Password:  

Verify:  

连续两次输入同样的密码

设置的密码保存在  /root/.vnc/passwd 

 

④ 修改防火墙配置,修改/etc/sysconfig/iptables

 # vi /etc/sysconfig/iptables    #编辑,添加以下代码,开启5901、5902端口

 -A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT  

 -A INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT

:wq! 保存,退出

 service iptables restart   # 重启

 

⑤使用VNC连接centos主机

 直接打开VNC,输入IP地址,冒号后面的1代表桌面号,这个要根据你的配置文件定义的桌面号

 

3、通过vnc登陆后,切换到oracle用户下面,即可进入到oracle的图形配置数据库界面


相关标签:数据库

下一篇:IARforstm8编译环境查找替换在哪?就是想把整个.c文件里的abc替换成bcd在哪里设置?

上一篇:新星汉语编程系统是什么

热门标签:
excel 网盘 破解 word dll
最新更新:
微软重新评估新的Outlook的使用时机 联想推出搭载联发科Helio G80芯片组的Tab M9平板 英特尔创新大赛时间确定! 微软Edge浏览器在稳定渠道中推出Workspaces功能 英伟达RTX4060TiGPU推出MaxSun动漫主题! 谷歌地图为用户提供了街景服务! GameSir 在T4 Kaleid中推出了一款出色的控制器! 微软开始在Windows 11 中测试其画图应用程序的新深色模式! LG电子推出全球首款无线OLED电视 英伟达人工智能芯片崭露头角! Steam Deck可以玩什么游戏-Steam Deck价格限时优惠 雷蛇推出CobraPro鼠标 Kindle电子阅读器可以访问谷歌商店吗 Windows10如何加入组策略 window10图片查看器怎么没有了?