lepidopterology : the branch of zoology dealing with butterflies and moths.
sentients : having the power of perception by the senses; conscious.
sentients : having the power of perception by the senses; conscious.
create user flashtest identified by flashtest ;
grant connect,resource,dba to flashtest;
conn flashtest/flashtest;
create table emp(ename varchar2(20),city varchar2(20));
insert into emp values('azar','riyadh');
insert into emp values('kareem','dubai');
insert into emp values('azmi','chennai');
insert into emp values('idress','riyadh');
insert into emp values('ajmal','chennai');
commit;
select current_timestamp from dual;
conn / as sysdba
drop user flashtest cascade;
shutdown immediate
startup mount
flashback database to timestamp to_date('22-DEC-10 09.25.30','DD-MM-YY HH24:MI:SS');
alter database open read only;
conn flashtest/flashtest;
select * from emp;
host exp flashtest/flashtest file=emp.dmp log=emp.log direct=y consistent=y statistics='none';
conn / as sysdba
shutdown immediate
startup mount
recover database;
alter database open;
conn sys as sysdba
create user flashtest identified by flashtest;
grant connect,resource,dba to flashtest;
host imp flashtest/flashtest file=emp.dmp log=emp.log full=y
create or replace package plch_pkg
is
type number_nt is table of number;
procedure pass_nums1 (nums in out number_nt);
procedure pass_nums2 (nums in out nocopy number_nt);
procedure show_nums (nums in number_nt);
end;
/
create or replace package body plch_pkg
is
procedure pass_nums1(nums in out number_nt) is
begin
for indx in nums.first..nums.last
loop
nums(indx):=nums(indx)*2;
raise value_error;
end loop;
end pass_nums1;
procedure pass_nums2(nums in out nocopy number_nt) is
begin
for indx in nums.first..nums.last
loop
nums(indx):=nums(indx)*2;
raise value_error;
end loop;
end pass_nums2;
procedure show_nums(nums in number_nt) is
l_return pls_integer :=0;
begin
for indx in nums.first..nums.last
loop
l_return := l_return+nums(indx);
end loop;
dbms_output.put_line(l_return);
end show_nums;
end plch_pkg;
/
show err
declare
nums1 plch_pkg.number_nt :=plch_pkg.number_nt(1,2,3);
nums2 plch_pkg.number_nt :=plch_pkg.number_nt(1,2,3);
begin
begin
plch_pkg.pass_nums1(nums1);
exception when others then
plch_pkg.show_nums(nums1);
end;
begin
plch_pkg.pass_nums2(nums2);
exception when others then
plch_pkg.show_nums(nums2);
end;
end;
/