to change the pl/sql block to get the value of the user
In this code rather than affect the value of the SID in the block, I want to get the sid of the user.
Help, please.
Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product |
PL/SQL Release 10.2.0.1.0 - Production |
CORE 10.2.0.1.0 Production |
AMT for 32-bit Windows: Version 10.2.0.1.0 - Production |
NLSRTL Version 10.2.0.1.0 - Production |
declare
v_sname t1.sname%type;
v_issue_date t3.issue_date%type;
v_book_title t2.book_title%type;
v_book_id t2.book_id%type;
cursor c1 is
Select t1.sname, t3.issue_date, t2.book_title, book_id
join T1 T3
using (SID)
Join t2
using (book_id)
where sid = 1;
Start
Open c1
loop
dbms_output.put_line (v_sname |) » ' || v_issue_date | » ' || v_book_title | ' ' || v_book_id);
extract the c1 in v_sname, v_issue_date, v_book_title, v_book_id;
When exit c1% notfound;
end loop;
Close c1;
end;
/
Thank you
If I set up a script that I want to pass a value, I just a configuration variable and name it and use it very similar to a procedure or function. Makes it easy to implement a procedure/function, or to convert a function/procedure in a PL/SQL block for test/debugging with relatively few changes to the code inside:
declare in_sid number := to_number('&1'); v_sname t1.sname%type; v_issue_date t3.issue_date%type; v_book_title t2.book_title%type; v_book_id t2.book_id%type; cursor c1 is select t1.sname, t3.issue_date, t2.book_title, book_id from t1 join t3 using(sid) join t2 using(book_id) where sid=in_sid; begin open c1 loop dbms_output.put_line( v_sname ||' ' || v_issue_date ||' ' || v_book_title || ' ' || v_book_id); fetch c1 into v_sname, v_issue_date, v_book_title, v_book_id; exit when c1%notfound; end loop; close c1; end; /
Tags: Database
Similar Questions
-
How to change the user name - peer-to-peer network
I recently installed shareaza, is a peer-to-peer network as you know. the problem is that all of my folders have my name on it: that is to say, he will say sharedfiles/Jose/my documents. I tried to change my username on useraccount, but the name of Jose remains on everything. is there anyway I can change this? Thanks for any help
Hello
The fact is that the username will be created at the beginning of the installation of the OS.
It comes to you account on the laptop.
Each user account includes the folder my documents.
In this case, you cannot change the user account if you have a single user profile on the laptop. The title of the user accounts, you can create additional user with different names.The other possibility would be to change the download source. But that you change somewhere in the program settings. Unfortunately, this program is unclear to me. In this case, I can give t you information where you will find this option.
-
I have a problem with the connection to the computer after you change the user name.
Original title: HELP
I changed the username on my laptop and it is not letting me log
I changed the username on my laptop and it is not letting me log
Here you go:
- Set your BIOS so that it uses the DVD drive as its primary boot device.
- Start the computer with your Windows 7 repair CD.
- Press a key when prompted to boot from the DVD.
- Select 'PC Repair' in the menu.
- Select 'Repair' when prompted.
- When you are prompted, select System Restore.
- Configure Windows to a point before you have changed the user name.
- Plan ahead a little and create, test and document an alternative admin account, same as you have a spare emergency House key. This will save you a lot of trouble.
-
Smartphones blackBerry how to change the user name of e-mail on a Blackberry Curve 9320.
Dear community,
I have a Blackberry Curve 9320. My company has recently changed their messaging system so I need to create a new e-mail account. Creating the account of electronic mail is not a problem. However. some settings need to be changed. When I go on settings, navigation key allows me to change the change the server info, type my password etc. However, I'm unable to change the user name. My device automatically generates a username of email that is not correct and I am unable to change because the navigation button jumps on this area. Can someone advise me on how a change the username of email on a curve 9320. Thank you.
IT WORKED! Thank you very much. Force the unit to offer "I'll give you the parameters" was the thing. Have a great day.
-
Change the user agent of the browser
Hi all
I am working on an app for Blackberry 6 and 7 using Webworks. I was wondering if it is possible to change the user agent of the browser.
What I would do is, add a string to the end. For example:
Default: ' Mozilla/5.0 (BB7) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 Chrome/33.0.1750.149.
Mine: "Mozilla/5.0 (BB7) AppleWebKit/537.36 (KHTML, like Gecko) Safari/537.36 CustomText, Chrome/33.0.1750.149.
Thanks in advance!
The config.xml file, you can declare rim: userAgent value
https://developer.BlackBerry.com/HTML5/documentation/v1_0/widget_element_834671_11.html
-
How can I change the user of "My Documents" by default? »
I'm changing the user to 'My Documents' which has initially set up a laptop from the MFG. while I can use it to another employee. I changed the name of the computer, but how do I change the user of "My Documents" by default? »
Hi W30330,
Please see the thread with a similar problem and fix possible:
I hope this helps!
-
How can I change the user backup POS?
Hi guys,.
Wondering if or how I can change the user to backup of POS on my POS device. Is it possible to change the user after the installation is complete?
Or I need to reinstall POS to do properly?
thx for the advice
Flo
You can change the user in https://ip-adress/vdp-configure under Configuration.
'Klick to change the configuration of vCenter' enter the PW the POS and you can change the user name of vCenter.
A reboot is required after the change, and an integrity check will be performed during the restart.
If the change will take some time...
Paul
-
I need to limit the number of virtual machines that Ops Mgr is looking for licensing reasons. I have my user configuration and permissions, but how do I change the user in the collection? I left empty during the initial installation, so he has rights to look at everything right now.
Thanks in advance,
Aaron
Hi Aaron,
One of the selections for the vCenter in the Admin UI is "update" - allowing you to add your user to the collection.
-
Change the user name in Smart View 11.1.2.1
Hello
Is it possible to force a change of username in Smart View 11?
Once the user is connected to they need to restart the copmputer to change the user name.I thought of making a right click on the HFM application and clicking on logout would work, but it didn't. Instead, you must click on disconnect all. You can find it in the Smart Panel View, by clicking on the little black arrow next to the Home icon.
Let me know if you still see issues.
See you soon,.
Mehmet -
How can I change the user name and password
I successfully download the FVO and install the virtual appliance. It works very well with my blackberry. I can connect to individual servers or virtual Center.
However I don't know how to change the user name and password.
I would also like to know how it works?
We have a BES server on our network and no configuration is necessary. I just turned on the device Mobile Access of vCenter and entered the ip address of my virtual Center and bingo, I can access through my blackberry.
If you try to change the Appliance virtual username and password, you can use the standard linux commands (adduser, passwd, chgrp, chown, etc.,)
The default user name and password so that the robot is root/vmware"."
-
What does "change the user myuser account unlock" do?
What is the statement "change the user myuser account unlock" do? I'm looking at a few examples to use the oracle data pump. He asks me to unlock the account.
TIA
RaviYou can not access a locked account. You can connect to an unlocked account (open).
ALTER USER myuser ACCOUNT UNLOCKING unlocks the account if you can connect using it. -
Hai all,
Plan to change the OS user for oracle database applications...
The database is currently owned by oratoure, I intend to change as follows:
(A) create a new user, oramoure
(b) assign the Group dba
(c) change of complete ownership of the directory to oramour (where oracle apps_st and tech_st) is
(d) attach the file of the environment to the bash profile...
(e) provide access to oramoure to/tmp and/var/opt/ora *.
nothing else to do?
Kai
Published by: KaiS on October 18, 2008 22:53Kai,
Please refer to the following note and follow the steps in the evolution of the property of the database files (skip the steps of cloning):
Note: 558478.1 - cloning of a house database and change the user/group that owns
https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=558478.1 -
change a pl/sql block using "bulk collect.
Hello
I have a pl/sql block, short it slows...
DECLARE
CURSOR CURUPDATE1 IS
SELECT MF_TJ. UID_LO
OF MF_TJ
WHERE MF_TJ. DTYP (SELECT CD
OF MF_DOC_TYPE
WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')
AND MF_TJ. LINE_TYP IS SET TO NULL;
BEGIN
FOR T IN CURUPDATE1
LOOP
UPDATE MF_TJ
THE MF_TJ VALUE. LINE_TYP = "NR."
WHERE MF_TJ. UID_LO = T.UID_LO;
UPDATE MF_AJ
THE MF_AJ VALUE. LINE_TYP = "NR."
WHERE MF_AJ. TJ_UID_LO = T.UID_LO;
END LOOP;
END;
/
now I change to use bulk collect, but I split it into two pl/sql blocks (each for an update)
DECLARE
CURSOR CURUPDATE1 IS
SELECT MF_TJ. UID_LO
OF MF_TJ
WHERE MF_TJ. DTYP (SELECT CD
OF MF_DOC_TYPE
WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')
AND MF_TJ. LINE_TYP IS SET TO NULL;
TYPE of recs_type IS the TABLE OF CURUPDATE1% ROWTYPE directory INDEX;
REB recs_type;
BEGIN
CURUPDATE1 OPEN;
Go SEARCH the CURUPDATE1 COLLECT in BULK IN REB 8000 limit;
CLOSE CURUPDATE1;
FORALL i IN 1.recs. COUNTY
UPDATE MF_TJ
THE MF_TJ VALUE. LINE_TYP = "NR."
WHERE MF_TJ. UID_LO = (i) recs. UID_LO;-END;
/
DECLARE
CURSOR CURUPDATE1 IS
SELECT MF_TJ. UID_LO
OF MF_TJ
WHERE MF_TJ. DTYP (SELECT CD
OF MF_DOC_TYPE
WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')
AND MF_TJ. LINE_TYP IS SET TO NULL;
TYPE of recs_type IS the TABLE OF CURUPDATE1% ROWTYPE directory INDEX;
REB recs_type;
BEGIN
CURUPDATE1 OPEN;
Go SEARCH the CURUPDATE1 COLLECT in BULK IN REB 8000 limit;
CLOSE CURUPDATE1;
FORALL i IN 1.recs. COUNTY
UPDATE MF_AJ
THE MF_AJ VALUE. LINE_TYP = "NR."
WHERE MF_AJ. TJ_UID_LO = (i) recs. UID_LO;-
END;
/Is there a way I can just use pl/sql block using bulk collect?
Thank you very much
Hi 5181139
As Paulzip and Jarkko Turpeinen have pointed out, you could do it using only SQL...
This is a course using COLLECT in BULK:
DECLARE blimit CONSTANT PLS_INTEGER := 500; CURSOR curupdate1 IS SELECT MF_TJ.UID_LO FROM MF_TJ WHERE MF_TJ.DTYP IN (SELECT CD FROM MF_DOC_TYPE WHERE MF_DOC_TYPE.DTYP_CAT = 'xx') AND MF_TJ.LINE_TYP IS NULL; TYPE c_arr IS TABLE OF curupdate1%ROWTYPE; c_rows c_arr; BEGIN OPEN curupdate1; LOOP FETCH curupdate1 BULK COLLECT INTO c_rows LIMIT blimit; FORALL i IN c_rows.FIRST..c_rows.LAST UPDATE MF_TJ SET MF_TJ.LINE_TYP = 'NR' WHERE MF_TJ.UID_LO = c_rows(i).uid_lo; FORALL i IN c_rows.FIRST..c_rows.LAST UPDATE MF_AJ SET MF_AJ.LINE_TYP = 'NR' WHERE MF_AJ.TJ_UID_LO = c_rows(i).uid_lo; EXIT WHEN c_rows.COUNT < blimit; END LOOP; CLOSE curupdate1; END;
See you soon,.
Gas
-
A few months ago, I gave a comuter the person who owned it died. The window indicates Micrsoft Window XP Professional-HP. My problem is that I do not have access on behalf of users and password. What should I do?
Hello
Many on this forum suggests that when you "inherit" a PC, you should do a clean install of Windows to delete the unwanted "baggage" that the previous owner has left behind. For example (but not limited to) viruses and criminal and illegal downloads. Such a procedure will reset all the passwords anyway. The PC may have a factory reset mechanism still intact. Visit the manufacturer website for more information, or we do know the number of brand, range and model of your PC for assistance.
If you are using XP Home Edition, the built-in Administrator account probably doesn't have a defined password. You can start in safe mode, where this account will be selectable when connecting. It allows to connect and change the password of any other connection.
To start in safe mode, keep hitting F8 twice a second after turning on the PC until you get the start menu where safe mode is selectable by the up/down arrow keys, and then press ENTER.
If you are using XP Professional, try to connect using the built-in Administrator account. You don't need to do it in safe mode (although you can if you wish). If your normal login screen is a display of the user symbol and hit ctrl-alt-del twice to get to login to text entry. Type administrator as the user name and try a blank password.
See also http://support.microsoft.com/kb/321305
Other than the foregoing, this forum has a policy of unknown passwords
http://support.Microsoft.com/kb/189126
Tricky
-
locked out of windows xp. happens only with the window prompted for a user name and password. the user name is the name of the previous owner and does not know the password. It is as far as the computer goes. It's not my computer (thank God), but I need to know what to do to help the girl he has. The computer was rebuilt and bought by it. It's a computer dell laptop.
What I can do. I can't connect what either. I can't edit or create a new user name and password for it either. I can't get in any other mode. You have any suggestions?
Hello
Microsoft cannot help you to reset, change or delete passwords. For more information, see the article mentioned below.
Microsoft's strategy concerning lost or forgotten passwords
Maybe you are looking for
-
My mom accidentally uninstalled Firefox from his computer and has no other internet browser on his computer. How can I download Firefox on a disk so I can download it then on his computer?
-
I myself sent the verification link a number of times, but it's still an empty link in the address line
-
Windows 7 00000919 update error
This error code 919 appeared when my computer has been updated. is anyway to fix that?
-
Support pilot Solution Menu EX
Keep getting error a driver support Solution Menu EX is not installed, after you use the installation CD to install my printer HP Envy 4500 e-all-in-one. Have Windows 7 Home Premium operating system.
-
Downgraded from Windows 7 RC1 for Vista Home Premium - now cant access partition Bitlocked
Hello I've been running Win 7 RC1 7100 32 bit on my laptop since its release and found absolutely great and have not been issued with it either. Unfortunately I had to return to my previous operating system, Vista Home Premium because of the RC1 of t