26。查询有哪些数据库实例在运行
select inst_name from v$active_instances;
===========================================================
######### 创建数据库----look $ORACLE_HOME/rdbms/admin/buildall.sql #############
create database db01
maxlogfiles 10
maxdatafiles 1024
maxinstances 2
logfile
GROUP 1 (’/u01/oradata/db01/log_01_db01.rdo’) SIZE 15M,
GROUP 2 (’/u01/oradata/db01/log_02_db01.rdo’) SIZE 15M,
GROUP 3 (’/u01/oradata/db01/log_03_db01.rdo’) SIZE 15M,
datafile ’u01/oradata/db01/system_01_db01.dbf’) SIZE 100M,
undo tablespace UNDO
datafile ’/u01/oradata/db01/undo_01_db01.dbf’ SIZE 40M
default temporary tablespace TEMP
tempfile ’/u01/oradata/db01/temp_01_db01.dbf’ SIZE 20M
extent management local uniform size 128k
character set AL32UTE8
national character set AL16UTF16
set time_zone=’America/New_York’;
############### 数据字典 ##########
set wrap off
select * from v$dba_users;
grant select on table_name to user/rule;
select * from user_tables;
select * from all_tables;
select * from dba_tables;
revoke dba from user_name;
shutdown immediate
startup nomount
select * from v$instance;
select * from v$sga;
文章来源于领测软件测试网 https://www.ltesting.net/