Fnd_web_sec.change_password('user','passwd')
Hi
can anyone plz check it
select APPS.fnd_web_sec.change_password('user','passwd') "RES" from dual
ERROR at line 1:
ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML
ORA-06512: at "APPS.FND_WEB_SEC", line 1448
ORA-06512: at line
Regards
Hi;
ORA-14552: cannot perform a DDL, commit or rollback inside a query or DML
Cause: DDL operations like creation tables, views etc. and transaction control statements such as commit/rollback cannot be performed inside a query or a DML statement.
Action: Ensure that the offending operation is not performed or use autonomous transactions to perform the operation within the query/DML operation.
Regard
Helios
Similar Messages
-
How to pass hidden user/passwd to report?
Hi,
Running reports in the Web is there a way to pass hidden user/passwd to report without using the map file?No, you either have to have the details in the map file or the URL itself. There's no other way to hide the username/password.
Hope this helps.
Regards,
Jatinder
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ehlamentavel:
Hi,
Running reports in the Web is there a way to pass hidden user/passwd to report without using the map file?<HR></BLOCKQUOTE>
null -
Solaris 9 client and Solaris 10 x86 clients works fine.
But Solaris 10 (3/05) sparc version fails.
#passwd -r ldap
passwd: Changing password for testuser
passwd: User unknown: testuser
Permission denied
I use same pam.conf and nsswitch.conf on all.
All clients are initialized with the same ldap_profile and
this works fine.
I use pam.conf from
http://docs.sun.com/app/docs/doc/816-4556/6maort2te?a=view
The client does not seem to contact the server.
If i monitored traffic, i cannot see packets.
passwd in debug modus the following result
pam.conf:
passwd auth binding pam_passwd_auth.so.1 debug server_policy
passwd auth required pam_ldap.so.1 debug
passwd fails:
Jul 7 08:51:06 sol10sparc passwd[1339]: [ID 285619 auth.debug] ldap pam_sm_authenticate(passwd testuser), flags = 0
Jul 7 08:51:06 sol10sparc passwd[1339]: [ID 647000 auth.debug] ldap pam_sm_authenticate(passwd testuser), AUTHTOK not set
passwd works fine:
Jul 7 08:59:00 sol10x86 passwd[1191]: [ID 285619 auth.debug] ldap pam_sm_authenticate(passwd testuser), flags = 0
One sparc client is full patched and one has no patches, but the problem is steady.
Is this a well-known error?
gratefully for each assistance.Just curious to know, if you were to comment out all "pam_unix_cred.so.1" lines in /etc/pam.conf, will it help?
I knew this shared object file is only found in Solaris10, it is not found in Solaris8/9. You may "man pam_ldap" in Solaris10 to find out what this file is for.
We are merely trying to use a working copy of pam.conf from Solaris8/9 in Solaris10.
Gary -
Hello,
I am using solaris 10 and when i create new user I have to pass password that must start with number e.g 12solaris , it is not accepting solaris12 as password as displaying password must be alphanumeric.how can I cure this problem
Message was edited by:
thbaigman passwd:
o Each password must have PASSLENGTH characters, where
PASSLENGTH is defined in /etc/default/passwd and is set
to 6. Setting PASSLENGTH to more than eight characters
requires configuring policy.conf(4) with an algorithm
that supports greater than eight characters.
o Each password must meet the configured complexity con-
straints specified in /etc/default/passwd.
o Each password must not be a member of the configured
dictionary as specified in /etc/default/passwd.
o For accounts in name services which support password
history checking, if prior password history is defined,
new passwords must not be contained in the prior pass-
word history.
If you're using defaults, then 6 is the maximum number of characters. Also:
MINNONALPHA Minimum number of non-alpha (including
numeric and special) required. If MIN-
NONALPHA is not set, the default is 1.
You cannot specify MINNONALPHA if MINDI-
GIT or MINSPECIAL is also specified.
count it out.
alan -
User passwd and profiles during migration
Hi
I am migrating my system to another hardware. For users to access the new server, should I simply add /etc/passwd and /etc/shadow in the new system as well as creating their home directory?
thxHi Charles,
>>I am very nervous about doing the uninstall and finding my user's client profile is inaccessible and all the settings will need to be redone.
As far as I know, as long as we follow the right guidance to do the migration, this won’t happen.
The following Microsoft official article provides step-to-step guidance for migrating from previous versions to Windows Server 2012 R2 Essentials.
Migrate from Previous Versions to Windows Server 2012 R2 Essentials or Windows Server Essentials Experience
http://technet.microsoft.com/en-us/library/dn408633.aspx
Best regards,
Frank Shen -
Svrmgrl connect internal fails after changing oracle os user passwd on 8.06
Hello,
I've this problem.
I've installed oracle rdbms 8.0.6 on HP-UX 10.20.
I've choosen o.s. authentication system with password file.
In the password file I set the password of the os user oracle which owns installation.
In first time svrmgrl connect internal looks good.
But when I've changed oracle os user password, and i retry to do connect internal
I receive the following message:
SVRMGR> connect internal;
Password:
Password:
ORA-01031: insufficient privileges
I've tried to reset the password to the old one, but it's unuseful
Could someone help me?In the password file I set the password of the os
user oracle which owns installation.The Password for the password file is supposed to be the SYS password and not OS User oracle which owns installation.
I do not think the Oracle OS user password change is the problem. When you alter SYS password using the alter user command, it should change the password file automatically.
Try
SVRMGR> connect sys/sys_password as see whether it works. If it does not, then check other issues. -
Not able to change RFx phase.
Hi All,
I am facing issue while moving RFx phase from Open for response to Close for response.
Steps are as follows:
- We have a toolbar script on RFx document.
- We are throwing an error from this toolbar script if user tries to run toolbar script when RFx phase is not in Close for response.
- Now, if user tries to change phase from open for response to close for response. The error persists on page and does not allow user to change phase.
- Anyhow if user reloads the RFx by reopening the document or Save the document and then tries to change phase, the error does not persist.
I have few questions related to this:
1. Why does error persist on page?
2. Is there any way to avoid the error to persist on page?
Please let me know the solution to this problem.
Thanks,
Salonithe above postings didnt solve my issue,i am getting the messageBecause you have not granted the permission on all objects which are referenced by the API (listed below).
select FND_WEB_SEC.CHANGE_PASSWORD('MARSHAD','mohammad@123') "RES" from dual
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "APPS.FND_CORE_LOG", line 25
ORA-06512: at "APPS.FND_CORE_LOG", line 432
ORA-06512: at "APPS.FND_PROFILE", line 110
ORA-06512: at "APPS.FND_SSO_MANAGER", line 227
ORA-06512: at "APPS.FND_WEB_SEC", line 1425
ORA-06512: at line 1..
can you please list me what are grants and other thins i should give to a user so as he can change password.I do not have the list of objects and you should get it yourself by checking the API code and eTRM website.
by changing the pwd of the non-apps user after granting grants,will he can be able to change the password.please tell this syntax is correct or not.
select APPS.FND_WEB_SEC.CHANGE_PASSWORD('user','pwd') "RES" from dualWhat is the point of using "FND_WEB_SEC.CHANGE_PASSWORD" and not FNDCPASS or FND_USER_PKG API?
Thanks,
Hussein -
USER UPDATE가 안되는 문제 ORA-20001 ORA-06512
제품 : AOL
작성날짜 : 2002-11-29
USER UPDATE가 안되는 문제 ORA-20001 ORA-06512
=======================================
PURPOSE
Problem Description
SQL> exec fnd_user_pkg.UpdateUser('LGESSO','SEED', 'lgesso2');
BEGIN fnd_user_pkg.UpdateUser('LGESSO','SEED', 'lgesso2'); END;
ERROR at line 1:
ORA-20001: Unabled to change password for user LGESSO for this following
reason:
Password was not changed.
ORA-06512: at "APPS.APP_EXCEPTION", line 51
ORA-06512: at "APPS.FND_USER_PKG", line 350
ORA-06512: at line 1
Workaround
patch 2426407를 적용해야 한다.
Solution Description
FND_USER_PKG.UpdateUser가 유저의 패스워드를 바꿀때 fail이 나는 문제이다.다음과 같은 에러가 난다:
ERROR at line 1:
ORA-20001: Unabled to change password for user JFROST for this following
reason:
Password was not changed.
ORA-06512: at "APPS.APP_EXCEPTION", line 51
ORA-06512: at "APPS.FND_USER_PKG", line 348
ORA-06512: at line 1
This is due to a change in FND_WEB_SEC.change_password being defined with a
pragma of autonomous transaction.
FND_USER_PKG.UpdateUser calls FND_WEB_SEC.change_password to change a user's
password.
Reference Documents
-------------------DBA2008 wrote:
i disable the trigger messing up tivoli user,& i am able to login fine, wondering if i enable it back it will do the same?If you keep doing the same thing, you can expect the same results.
Perhaps you should analyze the trigger to figure out
1) what it was supposed to be doing that is not being done since you disabled it
2) why it was throwing the error . . . -
Webdynpro - Check if a portal user has a user in R/3 Backend
Hi Experts,
i have following problem, and maybe some of you can help me out with an idea or (much better) a solution:
Our Company is running an Enterprise Portal on NW2004s (SPS 18). Currently i am developing a Java WebDynpro Application for the portal called Transactionstarter. Withhin this application a portal user can simply add a backend System (R/3), a transaction and a Description. This information will be stored in a xml file in userhome in KM. When the user clicks the description, SAP WinGui will open with the transaction he defined before. We use SSO for opening the transaction if the user has a backend user. If not, the loginscreen of the backend will appear.
All this works fine.
Now we have the requirement for an automated system check.
The portal user can run an initial system check. This system check should check all configured backend systems if the portal user has a user in R/3 backend.
But how can i check if my portal user exists in backend?
I cannot use JCO because we have a lot of Systems (more than 300 all together) and i don´t want to create a destination for every system. Or did i misunderstood something with JCO?
Does anyone of you have a solution, how i can check every system, if the portal user has also a backend user?
Thanks in advance.
Regards
PascalHi Pascal,
with JCO you can use also the method JCO.createClient:
public static JCO.Client createClient(java.lang.String client,
java.lang.String user,
java.lang.String passwd,
java.lang.String lang,
java.lang.String mshost,
java.lang.String r3name,
java.lang.String group)
Creates an instance of a client connection to a remote SAP system (with load balancing)
Parameters:
client - SAP logon client
user - SAP logon user
passwd - SAP logon password
lang - SAP logon language
mshost - Host name of the message server
r3name - Name of the SAP system
group - Name of the group of application servers
Returns:
the newly created client
for connections to other systems. So you can avoid to create destinations
Regards
Matteo
Edited by: Matteo Fusi on Apr 1, 2009 11:33 AM -
ORA-01435: user does not exist when using imp utility
I installed Oracle 8.1.7.0.0 successfully on WINDOWS 2000 and created a database TEST using DBCA. Then I used a script to creat a tablespace and a user in TEST databse. I could use the imp utility to import the data (a dmp file) to the TEST database without any problem. But after I applied a patch to bring up the version to Oracle 8.1.7.4.1, I got the following error when I tried to use the imp utility again to import the data (a dmp file) to the TEST database.
IMP-00003: ORACLE error 1435 encountered
ORA-01435: user does not exist
IMP-00000: Import terminated unsuccessfully
I checked that I created the same user test (as it is in dmp file I wanted to import) on TEST, and I could login to TEST using:
sqlplus test/test@TEST
The command I used is:
imp system/password@TEST file=test.dmp full=y log=importTEST.TEST.tmp
I also tried to use the following command:
imp system/password@TEST file=test.dmp fromuser=test touser=test log=importTEST.TEST.tmp
and got the same error as before.
Anyone has any clues what could go wrong? The only difference for me to import the data on TEST is that the
previous successful import was done in Oracle 8.1.7.0.0.
Is it possible that I missed something during the applying of the patch 8.1.7.4.1?
Thanks, and your help is greatly appreciated.
JaneTher is a set of instruction to be followed after installing the patch set 8.1.7.4.1 after running it thru OUI.They are as follows. Please complete these steps and u should not have problems any more.
When applying this patchset on Windows NT and Windows 2000, you must log onto the system as a user with Administrative privileges (e.g., as a user which is a member of the local Administrators group).
1.Disabling system triggers.
Before performing the next step, you must first set SYSTEMTRIG_ENABLED = FALSE in the initialization parameter file. To do this add the following line to your init<sid>.ora file and restart the database (see Note 149948.1 in Metalink for more information on this issue).
systemtrig_enabled=false
2.Invoke SQL*Plus (sqlplus), connect as internal and run the following:
select * from duc$ where PACK='JIS$INTERCEPTOR$' ;
If no rows were returned go to the next step. If a row was returned delete it using the following:
delete from duc$ where PACK='JIS$INTERCEPTOR$' ;
commit;
3.Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL scripts with event 10520 set. NOTE: This event is not intended for regular database operation and when turned on below by the 'ALTER SESSION' command will automatically be turned off by the subsequent 'CONNECT' command.
ALTER SESSION SET EVENTS '10520 TRACE NAME CONTEXT FOREVER, LEVEL 10';
?/rdbms/admin/catalog.sql
?/rdbms/admin/catproc.sql
?/rdbms/admin/catrep.sql (This only needs to be run if you are using symmetric/advanced replication. This is not necessary for sites using dblinks and read-only snapshots if symmetric/advanced replication is not installed)
CONNECT / AS SYSDBA;
update obj$ set status=5 where type#=29 and owner#!=0;
commit;
4.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install.
If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following SQL DDL command(* Note:If Java has not previously been loaded into the database, skip this step).:
SQL> create or replace java system
2 /
(Note that the / (slash) is important to ensure the execution of the command).
To ensure the correct installation of the XDK in the database run the following 2 scripts (Bug 2115227):
$ORACLE_HOME/oracore/admin/initxml.sql
$ORACLE_HOME/rdbms/admin/catxsu.sql
* To determine whether Java has previously been loaded into the database:
invoke SQL*Plus (sqlplus), connect as internal and run the following:
SQL> select count(*) from all_objects where object_type like 'JAVA%';
Java is installed if you get a non zero result returned from the query.
5.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
If Java has previously been loaded into the database, invoke SQL*Plus (sqlplus), connect as internal and run the following scripts which are located in $ORACLE_HOME/javavm/install ( Note: If Java has not previously been loaded into the database, you can skip this step):
load_jis.sql
jisja.sql
initjsp.sql
jspja.sql
Notes:
When running the $ORACLE_HOME/javavm/install/jisja.sql script the following error may be reported and can be ignored:
call jis_exit_java_session(0)
ERROR at line 1:
ORA-29515: exit called from Java code with status 0
Bug 1459233 was filed against this problem which is fixed in 9i.
6.If you deleted a row from duc$ in step 8 then reinsert it again. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL:
insert into duc$ (OWNER, PACK, PROC, FIELD1, OPERATION#, SEQ) values ('SYS', 'JIS$INTERCEPTOR$', 'USER_DROPPED', 0, 1, 1);
commit;
7.Enabling system triggers.
You must either remove SYSTEMTRIG_ENABLED from the initialization parameter file or explicitly set it to TRUE before attempting any other patch set post-install steps. Restart the database.
8.This step is optional - it will recompile all invalid PL/SQL packages now rather than when accessed for the first time - you can also use utlrcmp.sql to parallelize this. Invoke SQL*Plus (sqlplus), connect as internal and run the following SQL script:
?/rdbms/admin/utlrp.sql
9.Execute the following steps only if you have installed Oracle interMedia Text in the database you are attempting to modify:
If you have not previously unlocked the ctxsys account and supplied a password for that account, you need to do so. (If you have needed to use Oracle Text in any way prior to applying the patchset, you will have already performed this step, and you can skip this.) Do so by issuing the following statement:
ALTER USER ctxsys IDENTIFIED BY <passwd> ACCOUNT UNLOCK;
If you have already installed 8.1.7.2 or 8.1.7.3, go directly to step 7 below.
If you have already installed 8.1.7.1, go directly to step 5 below.
CONNECT ctxsys/<passwd>;
@?/ctx/admin/upgrade/u0801071.sql
CONNECT ctxsys/<passwd>;
@?/ctx/admin/upgrade/u0801072.sql
CONNECT / AS SYSDBA;
@?/ctx/admin/upgrade/s0801074.sql
CONNECT ctxsys/<passwd>
@?/ctx/admin/dr0pkh.sql
@?/ctx/admin/dr0plb.sql
@?/ctx/admin/dr0type.plb
@?/ctx/admin/dr0typec.plb
9.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
The installation of this patch set fixes a potential security hole in the XSQL Servlet - see here for more detail. The patchset installation does not, however, modify any of the Oracle HTTP Server configuration files to reflect changes to the XSQL Servlet installation. If you have previously installed the Oracle HTTP Server, you will need to update one of the configuration files manually after the patchset installation is complete. If you do not do so, the XSQL Servlet may not work in the context of the Oracle HTTP Server after the patchset is installed. To update your Oracle HTTP Server configuration, perform the following steps:
1) Edit the file: $ORACLE_HOME/Apache/Jserv/conf/jserv.properties
2) Search for the string: "XSQLConfig.xml File location"
3) Modify the parameter wrapper.classpath on the line immediately following the above string to read: $ORACLE_HOME/oracore/admin
4) Save the file.
10.You can ignore this step if you have already executed it as part of a previous 8.1.7 patch set install:
The installation of this patch set fixes a potential security hole in the PL/SQL XML parser - see here for more detail. To load the new XML parser in to the database, run the following script as user SYS:
? /xdk/plsql/parser/bin/load.sql
11.If you are using the RMAN catalog then upgrade it as follows:
rman catalog <user/passwd@alias>
upgrade catalog;
upgrade catalog;
The post install actions are now complete and the database is now ready for use. -
Allow unix account user to execute sqlplus in 10g
we have created a user with default groups and we required allow him to execute sqlplus command but it is giving errors. ( on same system we have db and oracle account). we do not want him to login into sysdba but as normal user so that he could enter sqlplus user/passwd@dbname. what should be done when a new unix account is created and how allow him to execute sqlplus command?
OS: openSUSE 11.1 - 32 bi
DB : 10.2.0.1.0 - 32 bit
do we need to install instant client ? to allow other than oracle user to access oracle db on same system?
please help me out. thanks in advance.user612078 wrote:
we have created a user with default groups and we required allow him to execute sqlplus command but it is giving errors. ( on same system we have db and oracle account). we do not want him to login into sysdba but as normal user so that he could enter sqlplus user/passwd@dbname. what should be done when a new unix account is created and how allow him to execute sqlplus command?
OS: openSUSE 11.1 - 32 bi
DB : 10.2.0.1.0 - 32 bit
do we need to install instant client ? to allow other than oracle user to access oracle db on same system?
please help me out. thanks in advance.If this is on the same box as the db, you definately don't need to install any other client, as the full client was installed with the db. The client you are using has nothing to do with what permissions a particular user may or may not have, either at the OS or DB level.
You say it is giving errors, but you didn't think giving the acutal specific error message might be needed to help you diagnose the problem? My crystal ball is out for repair. -
Audit the users processes _Audit not enabled in the database.
Hello
This is not usual question ;
I'm using oracle database 10g 10.2.0.2. Auditing is not enabled. I need to check users who executed a certained procedure from december 01 2010, until Jan 10 2011. The users connects to the database say "user/passwd@dbname" and executes the procedure. There can be different users sharing the same database logins. Is it possible to get some logs with the client PC and the date the procedure was executed. Even without Audit enabled
I will really appreciate
Edited by: user1115482 on Feb 1, 2011 11:48 AMHi!
If the listener logs are availables for this period you can check the logins (host,username,service) from them.
Best Regards
Norbert -
PASSWD PROBLEM!!!!!
Hi all,
We are facing a weird problem on sol 5.7.
We changed the root passwd and now the new as well as old passwords are working(as in we can log in with both the old as well as new passwds!!).
The only thing i remember doing is vi(ing) the /etc/passwd file to change the default shell for root to ksh.
Any help would be greatly appreciated!!
Thanx!
ManpreetHi,
login in to root user modify the two files
1. /etc/passwd
2. /etc/shadow
remove x (2nd column) entry from /etc/passwd file and remove junk characters from /etc/shadow file (2nd column) ( use any text editor like vi command)
Afterwards using the passwd command to change the root user passwd.
revert back.
Thanks.
regards,
senthilkumar
SUN - DTS -
I prepared a GUI user connection application in NebBeans 5.5 accessing mySql database in the company server. The application run very well in desktop.
However, when I post it to the company server web, it gets nothing from the database.
Can any one give advice???
Thank you in advance.
The following is my application
import java.util.Vector;
import java.awt.event.*;
import java.awt.*;
import java.awt.event.*;
public class UserConnection extends javax.swing.JFrame {
//constants for database
private final String userName = "labmanage";
private final String password = "labmanage";
private final String server = "jdbc:mysql://svr.corp.com/labmanage";
private final String driver = "com.mysql.jdbc.Driver";
private JDBCAdapter data = new JDBCAdapter(server, driver, userName, password);
//variables
private String user, pwd;
private Vector<Vector<String>> userTable = new Vector<Vector<String>>();
private Vector<String>colUserNames = new Vector<String>();
* Creates new form UserConnection
public UserConnection() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
userLabel = new javax.swing.JLabel();
pwdLabel = new javax.swing.JLabel();
userTextField = new javax.swing.JTextField();
passwordField = new javax.swing.JPasswordField();
submitButton = new javax.swing.JButton();
statusLabel = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
statusTextArea = new javax.swing.JTextArea();
changePwdButton = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("User's Connection");
setBackground(new java.awt.Color(153, 204, 255));
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setFont(new java.awt.Font("aakar", 1, 12));
userLabel.setText("User Name:");
pwdLabel.setText("Password:");
submitButton.setText("Submit");
submitButton.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
submitButtonMouseClicked(evt);
submitButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
submitButtonActionPerformed(evt);
submitButton.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
submitButtonKeyTyped(evt);
statusLabel.setText("Status:");
statusTextArea.setColumns(20);
statusTextArea.setEditable(false);
statusTextArea.setLineWrap(true);
statusTextArea.setRows(3);
statusTextArea.setText("Initial assigned password is \"dime\".");
statusTextArea.setWrapStyleWord(true);
jScrollPane1.setViewportView(statusTextArea);
changePwdButton.setText("Change password");
changePwdButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
changePwdButtonActionPerformed(evt);
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(userLabel)
.add(pwdLabel)
.add(statusLabel))
.add(35, 35, 35)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.add(submitButton)
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(changePwdButton))
.add(passwordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
.add(userTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)
.add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(layout.createSequentialGroup()
.addContainerGap()
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(userLabel)
.add(userTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(pwdLabel)
.add(passwordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(statusLabel)
.add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
.add(15, 15, 15)
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
.add(submitButton)
.add(changePwdButton))
.addContainerGap(27, Short.MAX_VALUE))
pack();
}// </editor-fold>
private void submitButtonKeyTyped(java.awt.event.KeyEvent evt) {
if(evt.getKeyCode() == KeyEvent.VK_ENTER) {
submitButton.doClick();
submitButton.requestFocus();
changePwdButton.requestFocus();
private void changePwdButtonActionPerformed(java.awt.event.ActionEvent evt) {
String command = evt.getActionCommand();
if(command.equals("Change password")) {
passwordField.setText("");
//Get connection to the changing password panel
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ChangePassword().setVisible(true);
private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
String command = evt.getActionCommand();
if(command.equals("Submit")) {
user = getUser();
pwd = getPwd();
data = new JDBCAdapter(server, driver, userName, password);
data.executeQuery("SELECT * FROM USERTABLE");
colUserNames = data.getColumnNames();
userTable = data.getDataTable();
if(colUserNames.elementAt(0).equals("")) {
statusTextArea.setText("Can not connect to database");
boolean checkUser = false;
int i = 0;
while(!checkUser && i<userTable.size()) {
if(user.equalsIgnoreCase((String) userTable.elementAt(i).elementAt(0))) {
//Find the user in database
checkUser = true;
//Check user's password
if(pwd.equals((String)userTable.elementAt(i).elementAt(1))) {
//Check for initial default password. The user is requested
//to change his password
if(pwd.equals((String) "dime")) {
statusTextArea.setText("You are requested to change your " +
"initial assigned password. Click 'Change password' please.");
else {
//Set UserConnection Panel to invisible
setVisible(false);
dispose();
//Get connection to the table
if(userTable.elementAt(i).elementAt(2).equals("0")) {
//Get connection to non-editable table
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
PVRackReportNonEdit rackReport = new PVRackReportNonEdit();
rackReport.createAndShowDialog();
else {
if(userTable.elementAt(i).elementAt(2).equals("1")) {
//Get connection to editable table
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
PVRackReport rackReport = new PVRackReport(user);
rackReport.createAndShowDialog();
//PVRackReport rackReport = new PVRackReport();
else statusTextArea.setText("You do not get approval for viewing data. " +
"Please contact the administrator for details.");
else {
passwordField.setText("");
statusTextArea.setText("Please enter corrected password or" +
"the administrator for details.");
i++;
if(!checkUser) {
passwordField.setText("");
statusTextArea.setText("Not find such user's name." +
"contact the admistrator for details.");
private void submitButtonMouseClicked(java.awt.event.MouseEvent evt) {
// TODO add your handling code here:
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new UserConnection().setVisible(true);
public String getUser() {
return userTextField.getText();
public String getPwd() {
return passwordField.getText();
// Variables declaration - do not modify
private javax.swing.JButton changePwdButton;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JPasswordField passwordField;
private javax.swing.JLabel pwdLabel;
private javax.swing.JLabel statusLabel;
private javax.swing.JTextArea statusTextArea;
private javax.swing.JButton submitButton;
private javax.swing.JLabel userLabel;
private javax.swing.JTextField userTextField;
// End of variables declaration
Here is my JDBCAdapter
package rackdemo2;
* This is an adaptor which transforms the JDBC interface
* to the PVRackTableDialogue
import java.util.Vector;
import java.sql.*;
import javax.swing.table.AbstractTableModel;
import javax.swing.event.TableModelEvent;
public class JDBCAdapter {
Connection connection;
Statement statement;
ResultSet resultSet;
Vector<String> columnNames = new Vector<String>();
Vector<Vector<String>> rows = new Vector<Vector<String>>();
ResultSetMetaData metaData;
public JDBCAdapter(String url, String driverName,
String user, String passwd) {
try {
Class.forName(driverName);
connection = DriverManager.getConnection(url, user, passwd);
statement = connection.createStatement();
catch (ClassNotFoundException ex) {
System.err.println("Cannot find the database driver classes.");
System.err.println(ex);
catch (SQLException ex) {
System.err.println("Cannot connect to this database.");
System.err.println(ex);
public void executeQuery(String query) {
if (connection == null || statement == null) {
System.err.println("There is no database to execute the query.");
return;
try {
resultSet = statement.executeQuery(query);
metaData = resultSet.getMetaData();
int numberOfColumns = metaData.getColumnCount();
// Get the column names and cache them.
// Then we can close the connection.
for(int column = 0; column < numberOfColumns; column++) {
columnNames.addElement(metaData.getColumnLabel(column+1));
// Get all rows.
while (resultSet.next()) {
Vector<String> newRow = new Vector<String>();
for (int i = 1; i <= columnNames.size(); i++) {
String tempString = resultSet.getString(i);
if(!tempString.equals("null")) {
newRow.addElement(tempString);
else {
newRow.addElement("");
rows.addElement(newRow);
//Modify dataTable to add empty row to separate chassis
if(numberOfColumns>1) {
int nRow = rows.size();
Vector<String> row = new Vector<String>();
for(int i=0; i<numberOfColumns; i++){
row.add("");
if(nRow>0 || numberOfColumns>0) {
//Adding blank row to separate chassis
int i = 0;
while(i<nRow) {
if(!rows.elementAt(i).elementAt(0).equals("")) {
if(i>0) {
rows.add(i, row);
i++;
nRow = rows.size();
i++;
close();
catch (SQLException ex) {
System.err.println(ex);
public void close() throws SQLException {
resultSet.close();
statement.close();
connection.close();
// MetaData
public Vector<String> getColumnNames() {
return columnNames;
public Vector<Vector<String>> getDataTable() {
return rows;
public int getColumnCount() {
return columnNames.size();
// Data methods
public int getRowCount() {
return rows.size();
}Thank you for your answer.
I'm very new to mySql as server. When I was assigned
to write the application, the administrator has set
up mySql database in the company web server for my
application. My program runs very when using my
workplace desktop with java web start or with java
web start in netbeans (all paths should be link to my
desktop hard disk, i.e. users/application/). I can
not run the application at home because I can not
access to the company intranet server (for security
purpose). The problem happens when I post the
application in the company web page (I have to modify
all paths in jnlp file to the company web address).
The program then runs without exception except it
seems that it gets no data from the database (for
example, when I type my username, it returns that
"There is no such user name. contact.." as what I
code in the application for not correcting user name)
It happens for not only using my company desktop but
also for others.
Please help me.
Thank you in advance.And all this could have been answered yesterday, in your other thread, when I asked you "Is the DB configured to allow that user to connect to the DB from where that user is attempting to connect from?"
Seeing as how you get that error, the obvious answer was, "No." At which point we could have continued.
Configure the needed users into the DB, without forgetting to allow them access from the machines from which they are going to access from.
Although, I agree with Rene, that you should set up a server of some sort, located on the same machine as the DB, for communicating with the DB. -
Hi All,
I have defined a connection pool to Sybase ASE 12.0. On WLS startup, the connection
fails due to a login failure. Needless to say, the user and passwords are absolutely
the right ones. IN included the def for the pool (config.xml) and the log output
below. Any ideas?
From config.xml:
<JDBCConnectionPool
DriverName="com.sybase.jdbc.SybDriver"
Name="egate2-pool"
Password="none"
Properties="user=mfinn;password=mfi123"
URL="jdbc:sybase:Tds:egate2.dev.east.frontiercorp.com:4100"
CapacityIncrement="1"
InitialCapacity="1"
MaxCapacity="2"
RefreshMinutes="0"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true"
Targets="mjf375"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false"
/>
<JDBCDataSource
JNDIName="egate2-jdbcds"
Name="egate2"
PoolName="egate2-pool"
RowPrefetchEnabled="false"
StreamChunkSize="256"
/>
From weblogic.log:
####<Jul 10, 2001 12:24:16 PM EDT> <Error> <JDBC> <egatedev1> <mjf375> <main>
<system> <> <001060> <Cannot startup connection pool "egate2-pool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings chained to
this exception for the reason(s).
at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
at com.sybase.tds.Tds.processLoginAckToken(Tds.java)
at com.sybase.tds.Tds.doLogin(Tds.java)
at com.sybase.tds.Tds.login(Tds.java)
at com.sybase.jdbc.SybConnection.<init>(SybConnection.java)
at com.sybase.jdbc.SybDriver.connect(SybDriver.java)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:188)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:130)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:707)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.ja
TIA,
MikeHi Mike. Don't specify the password except
as you have done in the properties. Let me
know...
Joe
Mike wrote:
>
Just to add:
1) I can login to the same URL (same login and password) from a standalone app
using the com.sybase.jdbc.SybDriver in the weblogic.jar. This is with user/password
being set in a properties object, as I assume is happening in WLS when the connection
is attempted. IOW, I am using getConnection(url,props) as opposed to getConnection(url,user,passwd,props).
2) The problem stated below also applies against a ASE 11.9.2 server.
Mike
"Mike" <[email protected]> wrote:
Hi All,
I have defined a connection pool to Sybase ASE 12.0. On WLS startup,
the connection
fails due to a login failure. Needless to say, the user and passwords
are absolutely
the right ones. IN included the def for the pool (config.xml) and the
log output
below. Any ideas?
From config.xml:
<JDBCConnectionPool
DriverName="com.sybase.jdbc.SybDriver"
Name="egate2-pool"
Password="none"
Properties="user=mfinn;password=mfi123"
URL="jdbc:sybase:Tds:egate2.dev.east.frontiercorp.com:4100"
CapacityIncrement="1"
InitialCapacity="1"
MaxCapacity="2"
RefreshMinutes="0"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true"
Targets="mjf375"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false"
/>
<JDBCDataSource
JNDIName="egate2-jdbcds"
Name="egate2"
PoolName="egate2-pool"
RowPrefetchEnabled="false"
StreamChunkSize="256"
/>
From weblogic.log:
####<Jul 10, 2001 12:24:16 PM EDT> <Error> <JDBC> <egatedev1> <mjf375>
<main>
<system> <> <001060> <Cannot startup connection pool "egate2-pool" weblogic.common.ResourceException:
Could not create pool connection. The DBMS driver exception was:
java.sql.SQLException: JZ00L: Login failed. Examine the SQLWarnings
chained to
this exception for the reason(s).
at com.sybase.jdbc.ErrorMessage.raiseError(ErrorMessage.java)
at com.sybase.tds.Tds.processLoginAckToken(Tds.java)
at com.sybase.tds.Tds.doLogin(Tds.java)
at com.sybase.tds.Tds.login(Tds.java)
at com.sybase.jdbc.SybConnection.<init>(SybConnection.java)
at com.sybase.jdbc.SybDriver.connect(SybDriver.java)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:188)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:130)
at weblogic.common.internal.ResourceAllocator.makeResources(ResourceAllocator.java:707)
at weblogic.common.internal.ResourceAllocator.<init>(ResourceAllocator.ja
TIA,
Mike
PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
Send resumes to [email protected]
Maybe you are looking for
-
IMac will not boot up when printer is plugged in USB
After buying my new iMac (with Tiger) I successfully transfered everything from my old iMac (with Panther) and all was well. The problem is that when my printer (Canon Pixma MP130) is plugged in on start up, the iMac will not boot up (no gears turnin
-
Oracle 10G gives in sorted order without order by ,in 11g it is not.
we are facing a strange problem. we have M Views on which we perform select operation ,we put joins of M Views and get the results by select operation , the results was in sorted order (asc) and we were not using any order by clause in the select que
-
WLS6.1 SP2/JDK1.3.1_03/HTTP 302 Error
Hello, we use WLS6.1 SP2 with JDK1.3.1_03 and we get sometimes an HTTP 302 error, when a JSP-page is requested. The error appears in the browser is following: This document you requested has moved temporarily. It's now at </zv/account/accou
-
SAP NetWeaver Composition Environment 7.1
Hi Can Any one provide any materials or links for the SAP NetWeaver Composition Environment 7.1 mail id : [email protected] I will be very thankfull for you if you provided some materials and links.. Thanks In Advance Regards Chandran S
-
Hi, I think I've tried 90% of the tricks listed in previous threads. My iMovie 09 (Version 8.0.6) continually crashes when I attempt to export. I have already tried: -Repairing disk permissions -Deleting any plist files from ~/library/preferences -