How to get sql/plsql links?
Hi All,
This is Anoo.. where i am working on Apex projects.. Now are looking for a guy where he can handle Sql/Plsql.
I have tried to search in google for interview questions bascially on Sql/Plsql, but i was not able to get any proper links.
can any body help me out where i can get the or proper links for sql/plsql interview questions?
So that i can proceed and have a interview with him or her..
The role of particular person would be Developer..
Thanks,
Anoo.
Hi Anoo,
You haven't mentioned what level of expertise you are looking for in the developer. You may find some common questions at the links below.
http://matrixl.net/oradev/intrv01.htm
http://www.coolinterview.com/type.asp?iType=63
http://www.orafaq.com/wiki/PL/SQL_FAQ
I would suggest to test the candidate based on your requirements, rather than on the answers available for the questions.
Edited by: Preta on Mar 26, 2010 3:00 PM Corrected typo
Similar Messages
-
How to get the plsql table data into output cursor
Hi,
Could anybody please help me.
Below is an example of the scenario..
CREATE OR REPLACE PACKAGE chck IS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
TYPE get_rec is record (ename varchar2(20),
eno number(12));
TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
emp_tab t_recs;
END chck;
CREATE OR REPLACE PACKAGE BODY chck AS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
is
BEGIN
select ename, eno
bulk collect into emp_tab
from emp;
open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
END;
END chck;
the above package is giving me an error:
LINE/COL ERROR
10/29 PL/SQL: SQL Statement ignored
10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
item
let me know what needs to be changed
Thanks
Manjumanjukn wrote:
once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
It is an extremely primitive structure - and should never be confused as being just like a table.
Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it. -
How to get the opportunities linked to a BP who is logged in?
Hi,
How to get the opportunities linked to a BP who is logged in mean the user who is logged in?
Regards,
JayaHi,
I understand the question as follows:
You want to get a list of opportunities that are assigned to the logged in user.
You can get the USER -> BP assignment from table HRP1001.
Then use the standard opportunity search to get the Opportunities.
cheers Carsten -
How to get sql server performance counters using query?
Hai i want to see my sql server performance counters like, Full Scans/sec, Buffer
Cache Hit Ratio, Database Transactions/sec, User
Connections, Average Latch Wait Time (ms), Lock
Waits/sec, Lock Timeouts/sec, Number
of Deadlocks/sec, Total Server Memory, SQL
Re-Compilations/sec, User Settable Query. If any one know how to get it by using query means, please help me.
Thanks in advanceHello,
Below is query created by Jonathan Kehayias for measuring Perfom counters using DMV sys.dm_os_performance_counter.
You can download book from below link
https://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
DECLARE @CounterPrefix NVARCHAR(30)
SET @CounterPrefix = CASE WHEN @@SERVICENAME = 'MSSQLSERVER'
THEN 'SQLServer:'
ELSE 'MSSQL$' + @@SERVICENAME + ':'
END ;
-- Capture the first counter set
SELECT CAST(1 AS INT) AS collection_instance ,
[OBJECT_NAME] ,
counter_name ,
instance_name ,
cntr_value ,
cntr_type ,
CURRENT_TIMESTAMP AS collection_time
INTO #perf_counters_init
FROM sys.dm_os_performance_counters
WHERE ( OBJECT_NAME = @CounterPrefix + 'Access Methods'
AND counter_name = 'Full Scans/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Access Methods'
AND counter_name = 'Index Searches/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Buffer Manager'
AND counter_name = 'Lazy Writes/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Buffer Manager'
AND counter_name = 'Page life expectancy'
OR ( OBJECT_NAME = @CounterPrefix + 'General Statistics'
AND counter_name = 'Processes Blocked'
OR ( OBJECT_NAME = @CounterPrefix + 'General Statistics'
AND counter_name = 'User Connections'
OR ( OBJECT_NAME = @CounterPrefix + 'Locks'
AND counter_name = 'Lock Waits/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Locks'
AND counter_name = 'Lock Wait Time (ms)'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'SQL Re-Compilations/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Memory Manager'
AND counter_name = 'Memory Grants Pending'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'Batch Requests/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'SQL Compilations/sec'
-- Wait on Second between data collection
WAITFOR DELAY '00:00:01'
-- Capture the second counter set
SELECT CAST(2 AS INT) AS collection_instance ,
OBJECT_NAME ,
counter_name ,
instance_name ,
cntr_value ,
cntr_type ,
CURRENT_TIMESTAMP AS collection_time
INTO #perf_counters_second
FROM sys.dm_os_performance_counters
WHERE ( OBJECT_NAME = @CounterPrefix + 'Access Methods'
AND counter_name = 'Full Scans/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Access Methods'
AND counter_name = 'Index Searches/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Buffer Manager'
AND counter_name = 'Lazy Writes/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Buffer Manager'
AND counter_name = 'Page life expectancy'
OR ( OBJECT_NAME = @CounterPrefix + 'General Statistics'
AND counter_name = 'Processes Blocked'
OR ( OBJECT_NAME = @CounterPrefix + 'General Statistics'
AND counter_name = 'User Connections'
OR ( OBJECT_NAME = @CounterPrefix + 'Locks'
AND counter_name = 'Lock Waits/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Locks'
AND counter_name = 'Lock Wait Time (ms)'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'SQL Re-Compilations/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'Memory Manager'
AND counter_name = 'Memory Grants Pending'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'Batch Requests/sec'
OR ( OBJECT_NAME = @CounterPrefix + 'SQL Statistics'
AND counter_name = 'SQL Compilations/sec'
-- Calculate the cumulative counter values
SELECT i.OBJECT_NAME ,
i.counter_name ,
i.instance_name ,
CASE WHEN i.cntr_type = 272696576
THEN s.cntr_value - i.cntr_value
WHEN i.cntr_type = 65792 THEN s.cntr_value
END AS cntr_value
FROM #perf_counters_init AS i
JOIN #perf_counters_second AS s
ON i.collection_instance + 1 = s.collection_instance
AND i.OBJECT_NAME = s.OBJECT_NAME
AND i.counter_name = s.counter_name
AND i.instance_name = s.instance_name
ORDER BY OBJECT_NAME
-- Cleanup tables
DROP TABLE #perf_counters_init
DROP TABLE #perf_counters_second
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
How to get anonymous guest link "View Only" and "Edit" URL using JSOM or Search API ?
Hi,
I need to get list item anonymous guest link View Only and
Edit URLs (as shown in image below) using JSOM or SharePoint 2013
Search API.
the URL will be like this - https://<site URL>/_layouts/15/guestaccess.aspx?guestaccesstoken=yRaYGmE9n
Any one has any idea how to do achieve this?
Thanks
ShakirHi Shakir,
To get the anonymous guest link “View Only”, we can use SP.ObjectSharingInformation.anonymousViewLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246826.aspx
To get the anonymous guest link “Edit”, we can use SP.ObjectSharingInformation.anonymousEditLink property in sp.js.
https://msdn.microsoft.com/en-us/library/office/jj246468.aspx
We can also use REST API to get the guests links:
_api/web/Lists/getbytitle('library name')/items(item id)/GetObjectSharingInformation?$expand=SharedWithUsersCollection&retrieveAnonymousLinks=true
Thanks,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Af:query : How to get sql
Hi,
How can i get SQL Query that is executing when I enter some criteria and click on Search button of query panel?
I tried to override executeQuery() method of VOImpl and printed getQuery(). It is showing the query with bind variable in the query and vc_temp for the fields that are added in Advance mode.
I want to get the actual query that is getting executed.
Regards,
VinoCan anyone help?
-
How to get SQL server IP ?
Hi ALL ,
I am using this script to get the SQL server IP address but it is working on one of the servers and generating an error on the other
SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') [Machine Name]
,SERVERPROPERTY('InstanceName') AS [Instance Name]
,LOCAL_NET_ADDRESS AS [IP Address Of SQL Server]
,CLIENT_NET_ADDRESS AS [IP Address Of Client]
FROM SYS.DM_EXEC_CONNECTIONS
WHERE SESSION_ID = @@SPID
there error I am getting is
Invalid object name 'SYS.DM_EXEC_CONNECTIONS'.
Any ideas how to get it to work ?Do you have
VIEW SERVER STATE permission?
Can you execute below SQL and post us the output?
SELECT HAS_PERMS_BY_NAME(null, null, 'VIEW SERVER STATE');
Also, Can you check the existence of the DMV under master database -> views->system views of the server?
--Prashanth -
How to get the view link definition from the view link accessor
Hi,
I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
Thanks!Hi,
you should get this through
ViewObject vo = this.findViewObject("LocationsView1");
int indx = vo.getAttributeIndexOf("DepartmentsView");
ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
Frank -
How to get CV03N object link tab data
Hi friends,
In the tcode cv03n, OBJECT LINK tab is there. in that object link screen has 2 tabs 1 is legal entity and another one is Project code.
I want to get the project link tab data. is there any function module.
Thanks & Regards,
Vallamuthu.MHi Vallamuthu,
Please try to provide the solution so that it will be easy for others to arrive at a solution while searching.
Keshav -
I am asked to get the deep link of a particular iview in a page in ESS role and use it in another page so that the users can easily navigate to the deep linked contents..
Hello Ajeeth,
maybe you should ask the person who gave you the assignment, what they mean by "deep link".
Regards,
Steffi. -
How to get "Open Document " link
Dear Friends,
I have customized a Requisition Notification based on PL/SQL documents and work flow concepts.
I have created no.of requisitions to test. Each requisition have 3 persons involved say A ,B , C
One for submitting ,other two for approval .
After person B approves., it will go to C. till now Everything working fine ,
But In person C's notification list , the link called "Open Document " is missing to open the submitted requisition.
Do I NEED TO SET UP ANY THING .
How to resolve this .Any idea .Plz share.
Let me know for any clarification.
Thanks
Aravinda.Dear friends
It's solved.
Just add Purchasing responsibilty to that user to whom that "open document link " is not visible in the notification.
Thanks
Aravinda. -
How to get Iview Quick link displayed in a headless window
Hi
I set the quick link for a iview, the iview has the Launch in new windows property set to 'Launch in a separated headless portal window', However when I run this iview's quick link URL, it always open in a portal content area with all the header and navigation bar beside. How can do to have the quick link open in a headerless windows. Thanks.
Cecilia HuangHello,
seems this is still not solved, even in 7.4 portal.
Maybe some other Portal Admins out there have an idea?
Everyone can reproduce the issue like this:
Make an URL iview pointing to http://www.google.com
Set Quicklink to google ( so it will be /irj/portal/google )
Set Launch in new window: "Open in separate window".
Add the iView to a role you have.
Test:
Call the iview from the navigation inside portal. Effekt: The browser opens a new window and shows http://www.google.com . So this works as expected.
Call the quicklink <yourportal>/irj/portal/google . The portal tries to launch the http://www.google.com inside the content area. In this case I get the error message that "Content cannot be displayed in a frame"
I think a lot of Portal admins would like to get this working as they could use Quicklinks more heavily.
Question to SAP: Is this intended behaviour ?
Regs
Ulf
By the way:
Does anyone know how to list all quicklinks available in the PCD ? I tried with the PCD Inspector, but did not succeed.
C U @ #teched_2014 -
How to Get SQL Results in Java?
Hello,
I'm new to java and have a few questions when running sql. I have no problems connecting to the Oracle 9i database, but my questions are these:
(1) I have a CREATE TABLE statement. How do I check to see if the table was actually created? SQL returns the statement "table created" if it was successful. I've tried different "out.print(resultSet.*" statements to return either success or failure, but nothing is working.
(2) I created a measure called sqlQuery. Can I put multiple sql statements in this measure? How do I get a resultSet for each sql statement and not just the last one?
(3) Is it possible to use the * (i.e., select * from tablename) in Java? I've tried this unsuccessfully too.
Many thanksStart with this:
http://java.sun.com/javase/technologies/database/
% -
How to get sql query data and write into csv file?
I am writing to seek help, in how can I create bat. script which can execute the following logic:
connection to the database
run sql query
create CSV file
output query data, into CSV file
save the CSV file
osql
-S 84.18.111.111
-U adw
-P rem
-i "c:\query.sql"
send ""
sed -e 's/,\s\+/,/g' MCI_04Dec2014.csv > localNoSpaces.csv
-o "c:\MCI_04Dec2014.csv"
This what i have so far, and I am little struggling with the logic after creating CSV file. I am unable to get the above script to work, please advice further, where I may be going wrong.
Can you create if statement logic within window's script, to check for null parameters or data feeds?
Any hints would be most appreciated.Thank you for your reply.
Apology for posting the code irrelevant to the forum, as I am still novice scripting user.
My goal is to create window's script which can compute the above logic and send the final output file (csv), to FTP folder.
Can this logic be implemented via bat. script, if so, is there a example or tutorial i could follow, in order to achieve my task.
Any help would be much appreciated. -
How to get a download link after previous computer crashes
My laptop that had Creative Suites installed on crashed and I cannot access the hard drive to deactivate the product, nor retrieve the original download link. I tired calling Adobe Support, the technician opened a call, immeediately closed the call and told me to go to getsupport link. He said there would be a chat option where I would be walked through it, there wasn't. How would I go about getting the support I need to deactivate and get a new download link?
Ianhttp://helpx.adobe.com/contact.html?step=DRWV_adobe-id-signing-in_stillNeedHelp
Maybe you are looking for
-
Adobe Acrobat 8 Professional - Crash Problem
The error appears when I open Acrobat, but also if I open any folder containing a PDF. The error reads "A serious error has been detected and Adobe Acrobat 8.1.0 Professional cannot continue. Please re-install the application and try again." If Okay
-
This is my first time using Apple Support and I inadvertently put the entire question in the discussion header. Please refer to it. I'd appreciate any help. Thank you Bob
-
Error while running run-sa.sh
Hi , I am having an issue while trying to run run-sa.sh . Error : Type:PKN3saw9ExceptionE File:/net/sdchs20n529/vol1/users/anabuild/views/nightly/Tue/101341/RH_Linux/vobs/090414.1900/analytics_web/main/project/webutil/configreader.cpp Line:1123 Messa
-
IPod on iPhone won't shuffle.
My iPod on my iPhone 3G won't shuffle, just keeps playing the same song unless I manually change it.
-
CS4 won't launch - what a joke!
Great - Apple send out OSX 10.6.3 & then the CS4 suite edition won't launch! Adobe promote the product with statements like: Are Creative Suite 4 products and components compatible with Mac OS X Snow Leopard (v10.6)? Yes. Working closely with Apple,