You are on page 1of 2

GLOBAL DATABASE NAME: orcl SYSTEM IDENTIFIER(SID): orcl SERVER PARAMETERS FILE NAME: The Database Control URL

is https://localhost:1158/em SYSTEM ADMIN PASSWORD I SET AT TIME OF CONFIGURING ORACLE DATABASE: hln user: system pwd: xe user: sysdba pwd: hln user: hr pwd: hr SET SERVEROUTPUT ON SIZE 1000000; declare cursor C1 is select table_name from user_tables where table_name like '%NARAYANA %'; tname user_tables%rowtype; begin open C1; loop if C1%found then dbms_output.put_line(tname.table_name); else exit; end if; end loop; close C1; end; create table narayana10 as select * from employees; select table_name from user_tables where table_name like '%NARAYANA%'; DECLARE TYPE TNAME IS table OF user_tables%rowtype; --indexed by binary_integer ; TNAMES TNAME; BEGIN SELECT TABLE_NAME BULK COLLECT INTO TNAME FROM USER_TABLES WHERE TABLE_NAME LIK E '%NARAYANA%'; FOR I IN 1..TNAMES.COUNT LOOP DBMS_OUTPUT.PUT_LINE(TNAME.table_name(I)); end loop; END; set serveroutputon 100000; SET SERVEROUTPUT ON SIZE 1000000; declare cursor C1 is select table_name from user_tables where table_name like '%NARAYANA %'; tname user_tables%rowtype; begin open C1; loop if C1%found then

dbms_output.put_line(tname.table_name); else exit; end if; end loop; close C1; end; toggle serveroutput on; select table_name from user_tables

You might also like