Skip to content

Instantly share code, notes, and snippets.

@mortenbra
Last active August 29, 2015 14:22
Show Gist options
  • Save mortenbra/d122724eb2afe0192a1e to your computer and use it in GitHub Desktop.
Save mortenbra/d122724eb2afe0192a1e to your computer and use it in GitHub Desktop.
Post-install test of Oracle XE
# 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