Last active
August 29, 2015 14:22
-
-
Save mortenbra/d122724eb2afe0192a1e to your computer and use it in GitHub Desktop.
Post-install test of Oracle XE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initial test of Oracle XE database after install | |
# become the "oracle" user | |
su - oracle | |
# connect to database | |
sqlplus /nolog | |
connect sys as sysdba | |
-- basic query to see stuff working | |
select sysdate, sys_context('userenv', 'server_host') from dual; | |
-- check components and versions | |
select comp_id, version, status | |
from dba_registry; | |
-- check users | |
select username, account_status | |
from dba_users | |
order by 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment