Oracle queries
- Read more about Oracle queries
- Log in to post comments
-- show tables
select table_name from all_tables;
-- output parameter
set wrap off;
set pagesize 0;
set linesize 120;
column owner format a30;
-- show configuration
show parameters;
-- list users
select username from all_users
-- find constraint
select *
from all_constraints
where constraint_name = 'SYS_C00381400';
-- select a random row from table
SELECT column FROM
SELECT column FROM table
ORDER BY dbms_random.value
)
WHERE rownum = 1
-- update materialized view
begin
dbms_snapshot.refresh('SCHEMA.MATERIALIZED_VIEW_NAME');
end;
-- view sched