Selecting an Instance with Environment Variables (18)
Before you attempt to use SQL*Plus to connect locally to an Oracle instance, you must
ensure that environment variables are set properly. When multiple database instances
exist on one server, or when an Automatic Storage Management (ASM) instance exists
on the same server as one or more database instances, the environment variables
determine which instance SQL*Plus connects to. (This is also true when there is only
one Oracle instance on a server.)
For example, each Oracle instance (database or ASM) has a unique system identifier
(SID). To connect to an instance, you must at a minimum set the ORACLE_SID
environment variable to the SID of that instance. Depending on the operating system,
you may need to set other environment variables to properly change from one instance
to another.
Refer to the Oracle Database Installation Guide or administration guide for your
operating system for details on environment variables and for information on
switching instances.
使用環境變數選擇例項
1. 環境變數決定了sqlplus連線哪個例項
2. 設定 ORACLE_SID 後環境變數後 , 相當於指向了那個例項(SID)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-994012/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Bash] Environment variables
- 17-Containers-Container Environment VariablesAI
- FastAPI(64)- Settings and Environment Variables 配置項和環境變數ASTAPI變數
- Angular 18+ 高階教程 – Component 元件 の @let Template Local VariablesAngular元件
- Spark Extracting,transforming,selecting featuresSparkORM
- Indexing, Selecting & Assigning(pandas學習二)Index
- Oracle environment variableOracle
- vertx instance
- GPU InstanceGPU
- Task04 :Variables and FunctionsFunction
- ORA-20001 selecting from DBA_TAB_STATISTICS
- MyBatis-03-environmentMyBatis
- Get Oracle Environment InformaticaOracleORM
- Spring系列.Environment介面Spring
- TensorFlow入門 - 變數(Variables)變數
- Linux: Desktop Environment DE GUILinuxGUI
- swiftUI-@Environment的作用SwiftUI
- error: externally-managed-environmentError
- variables_order引數詳解
- 3.2.1 Mounting a Database to an InstanceDatabase
- 3.1.5.6 Forcing an Instance to Start
- CS540 Python Virtual EnvironmentPython
- Qt QML之 JavaScript Host EnvironmentQTJavaScript
- PostgreSQL DBA(129) - Extension(pg_variables).mdSQL
- C++ instance的使用C++
- RMAN Duplicate RAC to Single Instance
- Task 04 變數與函式 Variables and Functions變數函式Function
- GitLab 實現動態 Environment URLGitlab
- Lecture 05 Real-time Environment MappingAPP
- 3.1.5.2 Starting an Instance, and Mounting and Opening a DatabaseDatabase
- Property [title] does not exist on this collection instance
- [20210218]Select vs Assign – How To Assign PLSQL Variables.txtSQL
- vue-cli3整合typescript,sass variables,多頁打包VueTypeScript
- Ruby class_eval and instance_eval notes
- LGWR (ospid: 29534): terminating the instance due to error 4021Error
- NSCFType unrecognized selector sent to instance等問題Zed
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- 概率論與梳理統計-隨機變數random variables隨機變數random
- Environment Switcher 原理解析(註解、Apt、反射、混淆)APT反射