0% found this document useful (0 votes)
36 views3 pages

Sep 6

The document discusses various SQL and PL/SQL concepts like data types, users, privileges, tables, and the vi editor. It also covers Linux concepts such as multi-user, multi-tasking, multi-processing and swap space. Finally, it discusses PL/SQL programming including unnamed blocks, variable declaration, and using dbms_output.put_line to display output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views3 pages

Sep 6

The document discusses various SQL and PL/SQL concepts like data types, users, privileges, tables, and the vi editor. It also covers Linux concepts such as multi-user, multi-tasking, multi-processing and swap space. Finally, it discusses PL/SQL programming including unnamed blocks, variable declaration, and using dbms_output.put_line to display output.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Character data type in oracle


2. lob data types in oracle
3. which lob data type stores unstructured binary data?
4. create a new user named user_1 and password u1
5. give all basic grant privileges(HInt , create session, resource)
6 check current username
7. switch from current username to "user_1"
note:
always check current username
8. create a table named "t1" in curent user "user_1"
9. delete current user user_1
10. ddl commands
11. dml commands
12. dcl commands
13. tcl commands
14. dql commands
15. BFILE are read only or read write ?
16. what is schema
17. which user autimatically created as admin user?
18. which schema contains base dictionary ?
19. which commands automatically commit the transaction
20. which object store data (table or view)
21. logical vs conceptual view?
22. what is cardinality (give suitable example)
23. one to one vs one to many relationship example
24. primary vs unique constraint give example
25. entity vs entity sets(give suitable example)
26. attributes vs touple(give suitable example)
27. 1NF vs 2NF
28: Define and give suitable example on Linux:
--Multiuser
--Multitasking
--Multiprocessing
29. what is swap space in linux
30. What is mount point
31. linux vs unix
32: explain with example:
vi editor(i,A,l,o,O)
33: explain with example:
vi editor(w,w!,wq,q,q!)
34: explain with example:
vi editor(/text,?text,n/N,1,5s/cat/dog)
=============================================================
4.who are using c##hr user
conn / as sysdba
create user c##user_1 identified by u1;
5.
grant create session,resource to c##user_1;
6.
show user ----sys
conn c##user1/u1
show user --- user_1
8. create table t1(id number);
9. conn / as sysdba
show user ---sys
drop user c##user_1 cascade;
10; ddl commands
create,alter ,drop ,rename,truncate
alter (add,rename,modify,drop)
11. dml
insert/upate/delete/merge
12. dcl
grant,revoke
13. tcl
commit,rollback,savepoint
14. dql
select
15. read only
16. schema is the logical container for a user --> it stores all
object(table,view,sequences....) in it
when its is created
when a new user craeted along with it the same name of logical image created called
schema
when drop the user schema is also dropped
17. sys , system
18. sys
19. ddl,dcl
20. table
=========================================================
in linux:
shell script
$>vi a.txt
clear
date
cal
whoami
esc :x
$>ls -l a.txt
$>chmod u+x a.txt
$> ./a.txt
$>sh a.txt
$>chmod u-x a.txt
$> ./a.txt --error
$>sh a.txt
Q: how to take input
$>vi b.sh
echo "enter a value"
read a
echo "you value is :"
echo $a
esc :wq
$>sh b.sh
enter a value
ashi
you value is :
ashi
task:
loops and control
lob data type:
character data type
char
varchar2
long--- 2gb
uptp 4 gb
clob
nclob
==========================================================
what is script
result : Hello Everyone
begin
dbms_output.put_line('Hello Everyone');
end;
/

unnamed block syntax:


declare
begin
exception
end;
/
===========================================================
set serveroutput on
declare
a number(3):=10;
b number(3):=40;
c number(3);
d number(3);
-- variable declaration section, single line comment
begin
d:=a+c;
dbms_output.put_line('The sum of '||a|| ' and '||c||' is '||d);
c:=90;
/* d:=a+c;
dbms_output.put_line('The sum of '||a|| ' and '||c||' is '||d); */
c:=a+b;
dbms_output.put_line('The sum of '||a|| ' and '||b||' is '||c);
end;
/
declare
a number(2):=10;
c number(4);
begin
c:=&x+&y+a;
dbms_output.put_line(c);
end;
/
=========================================================
summary :
1. how to write PLSQL program (unnamed block )
Q: what is unnamed block
which always compile before run
Q: unnamed /anonymous block syntax:
declare
begin
exception
end;
/
2. variable declare and initialization in plsql block
3. env setting (set serveroutput on/set verify off)
4. loops and controls (do it tomorrow)
5. how many blocks can keep in a script
sol: one or more
===========================================================

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy