To query the oracle server environment variables inside a pl/sql block that were set when the database was started:
$ . oraenv
ORACLE_SID = [oracle] ? ora1022
$ /usr/ucb/ps auxwwe | sed -n
'/[o]ra_smon_ora1022/s/\(.*\)\(TZ=...\)\(.*\)/\2/p'
TZ=MET
$ export TZ=GMT
$ printf "%s\n" "set lines 10" "var f varchar2(40)" "set autop on" \
> "exec dbms_system.get_env('TZ',:f)" |
> sqlplus -s / as sysdba
To query the client or listener environment, use:
SQL> var f varchar2(40)
SQL> set autop on
SQL> exec sys.dbms_system.get_env('TZ',:f);
or
SQL> $echo %ORACLE_HOME%
hardware, software, network, game, database, unix, linux, redhat, microsoft, oracle, sun, java, j2ee, IBM, market, lifestyle ......
Thursday, May 31, 2007
Latest Posts
Blog Archive
-
▼
2007
(40)
-
▼
May
(20)
- How to query server and client environment in PL/SQL
- Market Articles
- J2EE Articles
- MSSQL Articles
- Oracle Articles
- Answer - "1Z0-042 sample questions"
- Answer - "1Z0-043 sample questions"
- 1Z0-043 sample questions (1)
- 1Z0-042 sample questions (1)
- MCTS 07-431 Sample Questions (1)
- Answers of "SCJP 310-035 Sample Questions (1)"
- SCJP 310-035 Sample Questions (1)
- J2EE Patterns
- MSSQL 2005 Knowledge Base 1
- OCP References
- OCA references
- RBS group raises the stakes in ABN Amro bidding
- Google's market share jumped in April
- 4 ways to be a millionaire
- All Money Sense
-
▼
May
(20)