instances
来源:互联网 发布:apache for mac 编辑:程序博客网 时间:2024/05/20 05:59
两个oracle实例: beta和zeta
#export ORACLE_SID=beta
#sqlplus / as sysdba
SQL> startup
SQL> select * from hr.simple1; -- 在zeta的hr中有simple1,beta上没有。
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> shutdown immediate;
SQL> exit
#sqlplus / as sysdba
Connected to an idle instance.
SQL> startup pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/initzeta.ora'
SQL> select * from hr.simple1;
ID NAME
---------- --------------------
1 Amy
2 Mary
3 Cindy
打开另一个终端,
#export ORACLE_SID=zeta
#sqlplus / as sysdba
Connected to an idle instance. -- 居然显示连接一个空实例
SQL> startup
ORA-01102: cannot mount database in EXCLUSIVE mode
-- 不能打开实例了,因为controlfile已经被前面的操作打开了
SQL> quit
#export ORACLE_SID=beta
#sqlplus / as sysdba
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string zeta
SQL> select * from hr.simple1;
ID NAME
---------- --------------------
1 Amy
2 Mary
3 Cindy
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string beta
SQL> exit
#export ORACLE_SID=zeta
#sqlplus / as sysdba
-- 居然没有显示连接一个空实例
SQL> show parameter db_name
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_name string zeta
SQL> select * from hr.simple1;
select * from hr.simple1
*
ERROR at line 1:
ORA-01219: database not open: queries allowed on fixed tables/views only
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01507: database not mounted
SQL> alter database mount;
Database altered.
SQL> alter database open;
Database altered.
SQL> select * from hr.simple1;
ID NAME
---------- --------------------
1 Amy
2 Mary
3 Cindy
- instances
- List Instances
- 24.3 Attribute instances
- Preparing multiple tomcat instances
- define用法 Instances
- 14.2 - Function template instances
- AWS EC2 Instances Type
- 2.5. Creating Exchange Instances
- openstack-network-instances
- Waiting for instances to leave
- Querying Oracle BPM Process Instances
- 关于Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances的错误
- Avoiding Multiple Instances of an Application
- 14.4.3.1 Invocations on boxed instances
- Avoiding Multiple Instances of an Application
- Running 2 jboss instances on same server
- exec sp_configure 'user instances enabled', 1
- Eucalyptus: Not Enough Resources - VM Instances
- CARDINALITY
- IP地址和MAC地址
- 科翰软件:Office中间件行业的领导者
- 新手上路
- 在linux/unix下,你是怎么中止一个java进程的?
- instances
- MD5码
- 随机选择行的SQL语句? ORACLE SQLSERVER ECT.
- 春节将至
- [技术分享 – RMS 篇] Office 2003 七年之痒?虚惊一场!
- Repeater嵌套RadioButtonList
- 聪查强毅、正直中和
- [技术分享 – ISA 篇] ISA 2006 验证委派弹性得不得了!
- SOAOffice: Office中间件第一品牌