关于OPS启动的问题

[复制链接]
查看11 | 回复8 | 2012-5-15 15:24:11 | 显示全部楼层 |阅读模式
公司使用的测试数据库使用的是oracle817,采用的是OPS,共两个实例操作一个数据库,操作系统使用的是Tru64,当我分别在两个实例所在的主机上用SQL*PLUS启动数据库时,直接STARTUP不带初始化参数PFILE,启动正常:即
进入192.130.1.61
SQL>STARTUP
启动正常
进入192.130.1.62
SQL>STARTUP
启动正常
但当启动时带一个参数时,则只有其中一个实例可以启动,
其余的一个不能启动
进入192.130.1.61
SQL>STARTUP pfile=/alex/inithnyz1.ora
启动正常

进入192.130.1.62
SQL>STARTUP pfile=/alex/inithnyz2.ora
ORACLE instance started.
Total System Global Area 1047671780 bytes
Fixed Size
103396 bytes
Variable Size
232914944 bytes
Database Buffers
812179456 bytes
Redo Buffers
2473984 bytes
ORA-01102: cannot mount database in EXCLUSIVE mode
不知道如能带参数启动
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
检查参数文件,设得有问题:
/alex/inithnyz1.ora, /alex/inithnyz2.ora
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
当我使用同一个文件 /alex/inithnyz.ora,结果这是一样
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
ORA-01102: cannot mount database in EXCLUSIVE mode
Cause: Some other instance has the database mounted exclusive or shared.
Action: Shut down the other instance or mount in a compatible mode.
检查一下初始化参数文件,把你的参数文件内容贴出来让大家帮你检查吧
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
最初由 worldli 发布
[B]ORA-01102: cannot mount database in EXCLUSIVE mode
Cause: Some other instance has the database mounted exclusive or shared.
Action: Shut down the other instance or mount in a compatible mode.
检查一下初始化参数文件,把你的参数文件内容贴出来让大家帮你检查吧 [/B]

启动两个例程我都使用了同一个参数,当启动到第二个实例时总是报
ORA-01102: cannot mount database in EXCLUSIVE mode
参数文件详细内容如下:
#
# Copyright (c) 1991, 2000 by Oracle Corporation
#
##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation to help you customize
# your RDBMS installation for your site.Important system parameters
# are discussed, and example settings given.
#
# Some parameter settings are generic to any size installation.
# For parameters that require different values in different size
# installations, three scenarios have been provided: SMALL, MEDIUM
# and LARGE.Any parameter that needs to be tuned according to
# installation size will have three settings, each one commented
# according to installation size.
#
# Use the following table to approximate the SGA size needed for the
# three scenarious provided in this file:
#
#
-------Installation/Database Size------
#
SMALL MEDIUM LARGE
#Block 2K4500K
6800K 17000K
#Size
4K5500K
8800K 21000K
#
# To set up a database that multiple instances will be using, place
# all instance-specific parameters in one file, and then have all
# of these files point to a master file using the IFILE command.
# This way, when you change a public
# parameter, it will automatically change on all instances.This is
# necessary, since all instances must run with the same value for many
# parameters. For example, if you choose to use private rollback' segments,
# these must be specified in different files, but since all gc_*
# parameters must be the same on all instances, they should be in one file.
#
# INSTRUCTIONS: Edit this file and the other INIT files it calls for
# your site, either by using the values provided here or by providing
# your own.Then place an IFILE= line into each instance-specific
# INIT file that points at this file.
#
# NOTE: Parameter values suggested in this file are based on conservative
# estimates for computer memory availability. You should adjust values upward
# for modern machines.
#
###############################################################################
db_name = "hnyz"
service_names = hnyz

control_files = ("/dev/rvol/dg1/vol1", "/dev/rvol/dg1/vol2&quot


open_cursors = 300
max_enabled_roles = 30
db_block_buffers = 99143
shared_pool_size = 200801168
large_pool_size = 614400
java_pool_size = 0
log_checkpoint_interval = 10000
log_checkpoint_timeout = 1800
processes = 150
log_buffer = 2457600
# audit_trail = false# if you want auditing
# timed_statistics = false# if you want timed statistics
# max_dump_file_size = 10000# limit trace file size to 5M each
# Uncommenting the lines below will cause automatic archiving if archiving has
# been enabled using ALTER DATABASE ARCHIVELOG.
# log_archive_start = true
# log_archive_dest_1 = "location=/oradata1/oracle1/app/oracle/product/8.1.7/admin/hnyz/arch"
# log_archive_format = arch_%t_%s.arc
# If using private rollback segments, place lines of the following
# form in each of your instance-specific init.ora files:
#rollback_segments = ( RBS0, RBS1, RBS2, RBS3, RBS4, RBS5, RBS6 )
# Global Naming -- enforce that a dblink has same name as the db it connects to
# global_names = false
# Uncomment the following line if you wish to enable the Oracle Trace product
# to trace server activity.This enables scheduling of server collections
# from the Oracle Enterprise Manager Console.
# Also, if the oracle_trace_collection_name parameter is non-null,
# every session will write to the named collection, as well as enabling you
# to schedule future collections from the console.
# oracle_trace_enable = true
# define directories to store trace and alert files
background_dump_dest = /oradata1/oracle1/app/oracle/product/8.1.7/admin/hnyz/bdump
core_dump_dest = /oradata1/oracle1/app/oracle/product/8.1.7/admin/hnyz/cdump
#Uncomment this parameter to enable resource management for your database.
#The SYSTEM_PLAN is provided by default with the database.
#Change the plan name if you have created your own resource plan.# resource_manager_plan = system_plan
user_dump_dest = /oradata1/oracle1/app/oracle/product/8.1.7/admin/hnyz/udump
db_block_size = 8192
remote_login_passwordfile = exclusive
os_authent_prefix = ""
# The following parameters are needed for the Advanced Replication Option
job_queue_processes = 4
job_queue_interval = 60
distributed_transactions = 10
open_links = 4
compatible = "8.1.0"
sort_area_size = 106496000
sort_area_retained_size = 65536
db_files=600
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
你的问题可能出在操作系统的内核参数要调整。
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
OPS 启动的时候需要 以运行并行方式启动
parallel_server
boolean TRUE
检查相关参数
show parameterparallel
PARALLEL_SERVER_INSTANCES
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
最初由 Alex_wong 发布
[B]
启动两个例程我都使用了同一个参数,当启动到第二个实例时总是报
ORA-01102: cannot mount database in EXCLUSIVE mode
参数文件详细内容如下:
[/B]

It is not possible to run OPS with one init parameter file, though it is possible with RAC.
these must be different .
thread=

instance_number=


rollback_segments =
回复

使用道具 举报

千问 | 2012-5-15 15:24:11 | 显示全部楼层
you may find the 8i OPS doco helpful , or this metalink note.
Note:136077.1
Subject:
Setting up Oracle Parallel Server environment on Linux - Single node
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行