DROP the USER using Forms 6i
Hai All,I want to create and drop database through forms 6i users.
The user creation works fine for me, but the deletion of the user does not work.
I use the code
FORMS_DDL ('DROP USER CASCADE TEMP_USER'); to remove the user.
but it's not working.
one you suggest how can I remove a user from the database using forms?
Thank you
Manu.
It works through several sql?
If so you could do a test with immediate execution...
create a database procedure:
create or replace procedure execute_immediate(ivStatement in varchar2) is
begin
execute immediate ivStatement;
end;
/
and call from forms:
begin
execute_immediate('drop user test_user cascade');
exception
when others then
message(sqlerrm);
end;
run errors of immediate installation of oracle, so you should see what is happening
concerning
Tags: Oracle Development
Similar Questions
-
How to get more information about the user using SecurityContext ADF?
Hello.
In my application I have a table use:
CREATE TABLE ("ADM_USERS"
ACTIVATE THE 'ID' NUMBER(*,0) NOT NULL,
ACTIVATE THE 'U_NAME' VARCHAR2 (30 BYTE) NOT NULL,
ACTIVATE THE "U_PASS" VARCHAR2 (255 BYTE) NOT NULL,
VARCHAR2 (30 BYTE) "NAME."
VARCHAR2 (30 BYTE) 'NAME')
I configured the WebLogic environment using the the "reading- SQL only the authentication provider ' and then I configured ADF Security as ADF authentication -> Forms -authentication.
I connect the user using the method of ""doLogin " and all that working properly. "
public String doLogin() {}
String _username =;
Byte [] pw = _password.getBytes ();
FacesContext fctx = FacesContext.getCurrentInstance ();
HttpServletRequest request = (HttpServletRequest) () .getRequest () fctx.getExternalContext;
try {}
Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));
ServletAuthentication.runAs (object, request);
String loginUrl = "/ adfAuthentication?success_url=/faces/Registry.jsf";
HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());
sendForward (request, response, loginUrl);
} catch (FailedLoginException fle) {}
FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, "Incorrect name or password","Incorrect name or password" "");
fctx.addMessage (null, msg);
} catch {} (the LoginException)
reportUnexpectedLoginError ("LoginException", the);
}
Returns a null value.
}
securityContext.userName returns the value of the 'U_NAME '.
How to make more information on the user connected such as NAME, ID, first NAME?
And the second question:
How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?
Concerning
Darek
securityContext.userName returns the value of the 'U_NAME '.
How can I get more information about the user logged as NAME, first NAME, ID?You can not.
You need to query DB.
How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?
Record this value in UserData structure so it will be available in the model. http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html
Then use as default expression for your objects of entity attributes (something like: adf.userSession.userData.yourUserDataVar).
Dario
-
Hello Experts-
Help me please drop the user.
SQL > select sid from session $ v where username = "POLICY";
no selected line
SQL > drop user cascade of POLICY;
drop the cascade of user POLICY
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
Read the error message; the error is not about removing a user, it's dropping of the user OBJECTS, which were used at the time of the fall of attempt. Import (so an insertion) was interrupted while Oracle has roll back the transaction, which takes time and locks the object. Once the restore is complete, the locks have been released and the user, as well as all the objects for this user, could be deleted.
David Fitzjarrell
-
I get the following error while dropping the user...
SQL > drop user cascade ONAIR.
drop the ONAIR user cascade
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables
I asked dba_queue_tables but her shows that r thr tables without current queue...
Select queue_table from the dba_queue_tables where owner = "FLIGHT."
no selected line
DB version is 10.2.0.4.0 aix ServerRUN THE SYS. DBMS_AQADM. DROP_QUEUE_TABLE (queue_table-online 'JOB_QUEUE_DATA', force-online TRUE);
-
Cannot drop the USERS tablespace.
Hi all
I am trying to drop tablespace USERS and in the face of error below.
PLATFORM:
OS: Linux Ubuntu 9.04, LTS
SQL > select * from v version $;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
AMT for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
PROBLEM:
SQL > drop tablespace users, including content and files of data cascade constraints;
Drop tablespace users including data files and content cascade constraints
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tables
When I see, dba_queue_tables...
SQL > select the owner, queue_table from dba_queue_tables object_type.
OWNER OBJECT_TYPE QUEUE_TABLE
------------------------------ ------------------------------ -------------------------------------------------------------
SYS ALERT_QT SYS. ALERT_TYPE
SYS AQ$ _MEM_MC
SYS AQ_EVENT_TABLE SYS. AQ$ _EVENT_MESSAGE
SYS AQ_SRVNTFN_TABLE SYS. AQ$ _SRVNTFN_MESSAGE
SYS KUPC$ DATAPUMP_QUETAB SYS. KUPC$ _MESSAGE
SCHEDULER SYS $_EVENT_QTAB SYS. PLANNER$ _EVENT_INFO
SCHEDULER SYS $_JOBQTAB SYS. ANYDATA
SYS SYS$ SERVICE_METRICS_TAB SYS. SYS$ RLBTYP
SYSMAN MGMT_NOTIFY_QTABLE SYSMAN. MGMT_NOTIFY_NOTIFICATION
SYSTEM DEF$ _AQCALL
DEF SYSTEM $ _AQERROR
11 selected lines.
Also, there no tables in the tablespace USERS now, as I moved to another tablespace.
SQL > select count (*) from dba_tables where nom_tablespace = 'USERS ';
COUNT (*)
----------
0
Tablespace USERS is not permanent tablespace, as I changed to another, always the problem.
SQL > select property_name, name from database_properties where PROPERTY_NAME = 'DEFAULT_PERMANENT_TABLESPACE. '
PROPERTY-NAME NAME
------------------------------ ------------------------------
DEV DEFAULT_PERMANENT_TABLESPACE
Can you please help me drop the USERS tablespace.Hi boss,
Please find the solution for the same problem, but by dropping the user. Try the same for the Tablespace too.
SQL > drop user cascade COLOMBO_LIVE;
drop the waterfall COLOMBO_LIVE user
*
ERROR on line 1:
ORA-00604: an error has occurred at the SQL level 1 recursive
ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tablesSQL > select object_name from user_OBJECTS;
OBJECT_NAME
-------------------------------------------------------------------------MYQ
SYS_LOB0001130873C00025$ $
SYS_C001810004SQL > drop table myq;
drop table myq
*
ERROR on line 1:
ORA-24005: must use DBMS_AQADM. DROP_QUEUE_TABLE to drop queue tablesSQL > exec sys. DBMS_AQADM. DROP_QUEUE_TABLE (queue_table-online 'MYQ', force-online TRUE);
PL/SQL procedure successfully completed.
-
Manager not an event trigger in the field display name of the user registration form
Hello
I want to customize the display as name lastname.first name field in the user registration form.
so i have creates a process Manager field events, but this isn't the trigger to the full name field, he demonstrated error ion Orchestra.
But even when I went with first name , it's showing form name.first perfectly.
can anyone help me on that there is any event triggered default and does not allow to create a custom event on the display name field.
Thank you
Display name must be placed in a Hashtable as follows:
Map dispNameMap = new HashMap();
dispNameMap.put ("base", lastName + "" + firstName); then pass this card as:Parameters.put ("Display Name", dispNameMap);
-
Impossible to drop the user in TimesTen
Hi all
I created a data store: "tt_demo."
Created a user: 'test' and he granted "Admin, connect, create table, select on SYS. $OBJ ".
Created a simple table: emp and inserted two records.
Now, I need to drop this user, so I plugged to the data as a store below:
[*oracle*@exalytics bin] $. / ttisql
Command > Connect "dsn = tt_demo";
Successful login: DSN = tt_demo; UID = oracle;...
But when I try to drop the user I get following errors:
Order > drop user test.
15168: cannot remove a user who has database objects (TABLE TEST. EMP)
The command failed.
Order > drop user test cascade;
805: DROP USER... CASCADE has not been implemented
The command failed.
CASCADE is not supported by the TTT?
Can someone let me know the solution for this?
FYI, Version TT: 11.2.2.4.1
Thank you
SrikanthAccording to the error message we have yet not DROP USER... CASCADE.
So to remove a user, you must first delete all the objects belonged to this user.
Chris
-
How to save the custom of the user using PHP field?
Hello!
I am looking for a way to share specific data to the user between connected users. For example, all participants must know each other IDs (our own system IDs, no ACC).
Custom user fields seems the best solution for this, but I can't find a way to save one using PHP, while creating the room.
How to save the custom of the user using PHP field? Or maybe there's best solution to do such things?
Had, just add the new node to the UserManager collection.
const USER_MANAGER_COLLECTION = 'UserManager'; static private $USER_MANAGER_CUSTOM_FIELD_CONFIGURATION = array( 'accessModel'=>self::ROLE_VIEWER, 'publishModel'=>self::ROLE_VIEWER, 'persistItems'=>true, 'modifyAnyItem'=>false, 'userDependentItems'=>true, 'sessionDependentItems'=>false, 'itemStorageScheme'=>self::STORAGE_SCHEME_MANUAL, 'allowPrivateMessages'=>true, 'lazySubscription'=>false, 'p2pDataMessaging'=>false ); const USER_INVITE_ID_CUSTOM_FIELD = 'inviteId'; static private function createUserManagerCustomFields($room){ $account = self::init(); $collection = self::USER_MANAGER_COLLECTION; $account->subscribeCollection($room, $collection); $account->createNode($room, $collection, self::USER_INVITE_ID_CUSTOM_FIELD, self::$USER_MANAGER_CUSTOM_FIELD_CONFIGURATION); }
-
How do know us that now the user using the server component
Hi all
Suppose a user loged in to the siebel application.and requested for an object manager/component.and as the user who got. But this particular component is active in a portion so how do we know that now the user using the component.means Server user is in what server to use this object manager component.
Concerning
RemyUsing Server Manager, to connect without specifying a server, then run a command to sessions list for your device and you will see the user and the server.
Best regards
EvtLoglvl -
View UDF is in the user view form OIM11gR2
Hello
I've created some UDF in my user form, I added these UDF labels using Customize option on the UserForm from view. But I see not the values of database actually come on the form,
I've referenced the section below:
http://docs.Oracle.com/CD/E27559_01/Relnotes.1112/e35820/id_mgr.htm#i1092308
Article: 10.2.75
But I can't find any property: value change listener.
I do these changes have on display the form add a text like: output w/label
It's the entrance to the udf I see in the jsff.xml file in my exported sandbox:
* < af:panelLabelAndMessage xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" label = "#{bindings." PERSON_TYPE__c.hints.label}"id ="dtrt_dc_3885726088"> *.
* < af:outputText xmlns:af = "http://xmlns.oracle.com/adf/faces/rich" value = "#{bindings." PERSON_TYPE__c.inputValue} "/ > *"
* < / af:panelLabelAndMessage > *.
Please share any ideas if someone worked on it. It would be a GRT help!
Thank you.To add a UDF on display user form, you see the link here
http://docs.Oracle.com/CD/E27559_01/admin.1112/e27149/customAttr.htm#BABGDEICTo see the details of the user, you must select the component data - manage users.
-
I would like to be able to apply the spelling correction of selected fields in the forms I created using LiveCycle Designer 8.2 at runtime, as opposed at design time. I understand that version 8 LCD has a spelling corrector new OWL for form designers. But I want to say check the data entered by users using Acrobat Reader. And I want to apply the spelling correction automatically on only selected fields.
Currently it seems that fill out my forms, users must know how manually right-click on each field, and then select "Spell Check" from the dialog box to check spelling mistakes in the data that the user entered into the form.
I would like to discover a way to apply the correction spelling in certain areas, as well as I am able to do in forms created using Acrobat Pro. Acrobat Pro, I can set a property for each field to require the spell check. but this feature seems to be missing in Livecycle Designer.
I have check the object model for XFA forms hoping I could find a method I can call a JavaScript file, check the spelling based on an event such as onBlur. But I have not found a method of spelling.
Am I missing something simple? Is there a way to define each field out controls when a user is filling out the form using the free software Acrobat Reader?
Our users are not sophisticated and forcing spell check each field separately just doesn't cut it...
Any help on this will be greatly appreciated.
Thank you!
-David Bartholomew
Hi David,
Two things...
At design time has set the locale of the form to that coming out Acrobat checks. For example the locale English (United States) and English (United Kingdom) have Spellers; However the English (Ireland) does not work. Check the warnings tab to see if the spell checking is supported for your locale.
If your locale form supports spell checking, so you can go to the script of the button below.
If you form local does NOT support spell checking, Stephanie has a great work-around to force spell (http://forums.adobe.com/message/2233945#2233945).
Put a normal button on the form and in the click event must have the following:
app.execMenuItem ("spelling: spell check");
Which will open the checker spelling for all fields. Thanks to Paul for extract all elements of menu available (http://forums.adobe.com/message/1912914#1912914).
Good luck
Niall
-
Train webutil functions. How to identify if the user uses native internet
Hello
I have a form with a few webutil functions. How can I determine if a user uses the internet with native form explore?
If a user with jinitiator uses forms, its ok, but when a user use native internet explore, he gets the bean orcle.forms.webutil.fileTransfer not found error. WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work.
When the user is using internet explore native, I want to disable the webutil function before generating a file on the application server and then you download on a client computer.
IM using Forms10g and Forms10gR2.
Thank youyou have two different config sections for the two modes?
If so, you could put a value different to each of them in the otherparams tag and read than when running, or use the other gall env and set a variable with different values for each config in there and read it through TOOL_ENV.
-
Blank PDFs open while the user uses the Web browser
One of the users of our company presents a strange problem with Adobe Reader and Internet usage. Randomly when it is on the internet reader will open 1 empty PDF. After leaving this black PDF that opens without apparent reason, a second blank PDF opens. Only after the closing of the windows of the second PDF, reader cease to open a blank PDF.
To be clear, the question, I was in his office when open PDF files on him, and he has not yet clicked a PDF file to view. It just seems to happen after he clicks on a link on the web.
He uses Windows 7 professional 64-bit, and I'm sure he's got Reader X or later version on his machine.
I think he uses Google Chrome browser when that happens, but he said recently this problem with Internet Explorer, "accidentally, I open internet explore and click on an article of new KETV.» This time the problem of pdf did not stop. He opened several tabs for the article I've tried to see. And he tried to open a pdf file, sometimes more than one pdf for each open tab. "I got caught in a cycle until I used the Task Manager to kill it."
If you have an idea why this is happening please let me know.
Thank you
I found the solution to my problem, fortunately. If ever, someone else come across this problem and found this post. Users were using Reader 9. So I have updated their XI player and did not have the problem again. If this never happens on the road once again, I would say to upgrade to the latest version and you shouldn't have the problem more.
-
need to update the date of the end of the user using the API of the IOM
We have a requirement where we need to update the date of the end of the user. The details of the user as usr_key, number of days to extend (such as 30 days or 60 days), and affects manager is provided by SOA (maybe by BPEL). In the java class, I need to add the number of days of the closing date of the user and then update the table of the usr by IOM API method - usrMap.put ("USR_END_DATE", updatedEndDate);
I wrote a small program, but it has erros. Please help me in this situation.
' public boolean updateEnddate (String usrKey, String managerKey, String NombreJours) {}
Boolean result = false;
String NombreJours;
int totalNumUsers = 0;
HashMap usrMap = new HashMap();
usrMap.put ("Users.Key", usrKey);
usrMap.put ("USR_MANAGER_KEY", managerKey);
try {}
DateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdfSource.parse("USR_END_DATE");
SimpleDateFormat sdfDestination = new SimpleDateFormat("dd-MMM-yyyy");
String userEndDate = sdfDestination.format (date);
tcResultSet = this.usrIntf.findUsers (usrMap) users;
totalNumUsers = usersList.getRowCount ();
If (totalNumUsers > 0)
for (int i = 0; i < totalNumUsers; i ++) {}
usersList.goToRow (i);
updatedEndDate = userEndDate + NombreJours;
usrMap.put ("USR_END_DATE", updatedEndDate);
this.usrIntf.updateUser (users, usrMap);
result = true;
}
on the other
result = true;
}
Thank you
Kalpana.Calculate the new date
/**
* This method is used to obtain the new date after adding x-days
@param strDate - date today
@param daysToAdd - x-days
* @return Nouvelle_date - date after the addition of x days
*/
private String incrementDate (Date strDate, int daysToAdd) {}
Start date
Logger.info("NotifyLastDayOfService::incrementDate(): entrez»);
SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
Dim str As String = sdf.format (strDate);
Calendar c = Calendar.GetInstance ();
try {}
c.setTime (sdf.parse (str));
} catch (ParseException exception) e {}
e.printStackTrace ();
}
c.Add (Calendar.DATE, daysToAdd); number of days to add
String PROMOTIONDate = sdf.format (c.getTime ());
System.out.println ("calculated End Date:" + PROMOTIONDate);
Logger.info("NotifyLastDayOfService::incrementDate(): sortie»);
return Nouvelle_date;
}This should solve your problem :)
-
How to authenticate the user using oracle user
Hello
I do some piece of my apex application login authentication and what I want to do is to let people connect with the user Oracle (schema) and the password also, in the system. I know that we have a dba.users table that contains the usernames and respective encrypted passwords for users of Oracle. But using this table is not the right way for my solution. Is there another way I can authenticate the user if he uses the username/password Oracle (as sys/respective password)?Hello:
You might want to consider 'DAD authentication' for your application as described here
http://download.Oracle.com/docs/CD/E14373_01/AppDev.32/e11838/sec.htm#CHDJBAIF
CITY
Maybe you are looking for
-
Z30 satellite will not be closed
New laptop for my daughter will not entirely closed and seems to be stuck at the stage of closing.I tried pressing so that hold power button for 5 seconds. It seems to stop even if the power led on the touchpad still slowly flashes orange.When you pr
-
main problem with iPhone button 5
Hello The button main iphone less sensitive when you press 5. Is this repairable? Thank you
-
error the file name with accent passed to GetFileDate()
Hello When passing a file or a file that belongs to a path that has one of its names of folders containing a character accentuated to GetFileDate(), I get an error of library function (return value == - 1). For example, all the files in the folder 'E
-
I have amassed a certain "Microsft' updated
Now, first of all to start!I'm no computer whizz kid and be faithful won't be!BUT, I just looked in my 'Control Panel' (just to see) and I have amassed a certain "Microsft' updated?Can someone tell me (in terms laymans terms) what has happened!
-
original title: Windows Mail just set up Windows Mail, and it took the e-mails out of the Box in my e mail ordinary. Is it possible to get back to my original email messages and they come for the two boxes in? Thank you