-
What is a view?
A view is nothing but a window of an existing table by which one can view and can also change the values in tables. The main point aspect of view is views have no storage space. For this reason views are also called as virtual tables. Thus in other words a view is a database object that gives a logical representation of one or more database tables.
As we have seen above views have no data for... -
-
-
-
-
Explain about TNSPING
You can also use tnsping utility on command prompt to check Oracle Net connectivity. Follow these steps to check the connection to particular SID.Open Command prompt.Write tnsping < SID for the database connectivity you want to check >If you get the message “Used TNSNAMES adapter to resolve the alias” then tnsping utility is able to resolve the service name.If you get “TNS-03505: Failed to resolve...
-
-
-
-
-
-
-
-
-
Without "distinct" recorset is opened without problems.
Private Sub Command1_Click()
Dim Cnn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim CadOracle As String
Dim CadSql As String
CadOracle = "DSN=Oracle;UID=RECAUDA;PWD=xxxx;DBQ=orcl"
Cnn.Open CadOracle
CadSql = "select distinct NOMBRE_MUNI_SUJ from paddgc53"
rs.Open CadSql, Cnn, adOpenKeyset, adLockOptimistic, adCmdText
While Not rs.EOF
rs.MoveNext
Wend
Cnn.Close
End Sub
thanks.">Hello, I have problem with this RecordSet. Do not open with "select distinct". Why?Without "distinct" recorset is opened without problems.Private Sub Command1_Click()Dim Cnn As New ADODB.ConnectionDim rs As New ADODB.RecordsetDim CadOracle As StringDim CadSql As StringCadOracle = "DSN=Oracle;UID=RECAUDA;PWD=xxxx;DBQ=orcl"Cnn.Open CadOracleCadSql = "select distinct NOMBRE_MUNI_SUJ from paddgc53"rs.Open CadSql, Cnn, adOpenKeyset, adLockOptimistic, adCmdTextWhile Not rs.EOF rs.MoveNextWendCnn.CloseEnd Subthanks.
-
What is the use of truncate command?
Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from either a table or a cluster. If one wants to use the truncate command in a cluster they can use it only...
-
What are triggers in database? ">
What are triggers in database?
The programmer may like the database o take some action when a database event occurs. In order to achieve the above purpose triggers are defined. The trigger body refers to the code written within the trigger which gets fired and executed when the related database event associated with the trigger occurs. On this situation one may have the question what is the event on the happening of which triggers...
-
-
-
Oracle Basics Interview Questions
Ans