fanbina6 发表于 2013-1-14 08:40:14

oralce常用命令

1.系统重启后,启动数据库
su – oracle
lsnrctl start
#The /NOLOG option starts SQL*Plus without connecting to a database.
sqlplus /nolog
connect / as sysdba
startup
或者
conn sys as sysdba
startup open fbdb(数据库名)
关闭数据库为:
shutdown
2.常用命令
#显示某用户所有表(例如SCOTT,必须大写)
   select TABLE_NAME from all_tables where owner = 'SCOTT';
#显示当前的所有用户表
   select * from user_tables
#显示当前数据库的所有表
   select * from tab;
页: [1]
查看完整版本: oralce常用命令