I. To modify data type of a column ? Ii. To add a column with not null constraint ? To modify the datatype of a column the column must be empty. To add a column with not null constrain, the table must be empty.
What is the usage of savepoints
By utilizing savepoints, you are able to rollback to a given point in your processing. An example of this would be: ... COMMIT; INSERT UPDATE SAVEPOINT A DELE...
Savepoints are the temporary bookmarks. it is possible to rollback up to the named savepoint.
If yes - under what conditions
5. The query of the view shoud not consist of any aggregate funtion 6. The query shoud not consist of any subquery 7 And the other option is we can use the instead of trigger to update the ...
an Insert,Update,delete can be done through views is
1. inserts/updates/deletes done only in one base table at a time
2. primary key columns should be part of view
3. columns which are going to be updated must be part of vew def.
4. it shouldn't voielet the contraints
What are the different types of outer joins
LEFT OUTER JOIN, RIGHT OUTER JOIN, FULL OUTER JOIN
scott@8i> create database link ora8idev
2 connect to scott
3 identified by tiger
4 using 'ora8idev'
5 /
Database link created.
scott@8i> select * from dual@ora8idev;
D
-
X
it is a way of connecting to remote database.
usage is
@xyz.tablename.column
What are the advantages of view ?
To protect some of the columns of a table from other users.To hide complexity of a query.To hide complexity of calculations.
Advantages of view:1. Restricts the access to particular columns and rows of the base tables.2. Hide the data complexity.3. Can access the data for two different base tables with out performing a join...
What is the theory behind the join statement in db2
What are PL/SQL cursor exceptions
Cursor_already_open, Invalid_cursor
invalid_cursor, cursor_not_open
What is a non- corelated subquery
Non corelated subquery, where the subquery has been executed once for the entire parent statement.
Transaction is logical unit between two commits and commit and rollback.
A Transaction is a logical unit of work that comprises one or more SQL statements executed by a single user.A transaction either commits (i.e. all its actions happen), or it aborts (i.e. all its actions are undone). This all-or-nothing quality makes for a simple programming model.
Transactions also meets the ACID test: Atomic, Consistent, Isolation, and Durable
What is snapshot in Oracle 9i and what is different between view and snapshot?
In Oracle 9i instead of snapshot we can use meterialized views which can act as snapshot.Diff between view & snapshot is view is not a table its a virtual table to join one or more table or to pre...
A snapshot is a table that contains the
results of a query of one or more tables or views, often located on
a remote database.
Is 'define' a valid SQL statement?
if DEFINE is isqlplus command then how do u define ACCEPT command. what is difference between them?i think define is a command in sql *plus which works same in isqlplus with ACCEPT.pls do forward the argument.
define is not a sql command
define is Isql*plus command. to give a global variable we use it
What is an integrity constraint ?
Integrity constraint is a rule that restricts values to a column in a table.
Integrity constraint restricts values of a column so that only meaningful values as per the business logic of the table be entered into the column.Integrity constraints are of the following types:Not ...
4)what is the process of connecting to database manually in Oracle database
The startup of database depends on the nature of Oracle server :Incase Of Enterprise Server and Unix Environment :Go to Unix and type the following commands :sqldba lmode=yconnect internalstartupThis ...
in oracle 7.1.6
unix enviournment
sqldba lmode=y
connect internel
statup
oracle 7.3.4 and 8i
svrmgrl
connect internel
statup
in 9i
sqlplus /nolog
connect /as sysdba
startup
u can use option like alter database open
startup mount /nomount
Database link is a named path through which a remote database can be accessed.
when u want to access the database from remote database then u hv to create a database link with creating a directory .
What is the fastest way of accessing a row in a table ?
Using rowid.Constraints
by using the index and rowid
Is it possible to access the current value in a session before accessing next value
Nextval must be used to generate a sequence number in the current user's session before currval can be referenced.
You can find the last number used in the session for your sequence from the below mentioned query
select last_number from user_sequences where sequence_name =
I wanna to know every thing of implementation and theinterview questions
I don no
Hi,Implementing a project from the begining to the production and maintenance stage.(1) System Planning: (Scope & Budget of the Project)(2) Business Analy...
TOO_MANY_ROWS
NO_DATA_FOUND
INVALID_CURSORS
CURSOR_ALREADY_OPEN
DUP_VAL_ON_INDEX
I think WHEN_OTHERS is only OTHERS
NO_DATA_FOUND
WHEN_OTHERS
TOO_MANY_ROWS
Sequence name currval, sequence name nextval.It is not possible. Only if you access next value in the session, current value can be accessed.
Hi,
Yes,We can use current and next values from a sequence.
-Regards,