Key Listner Clearification
Hi,
To react on key events i added key binders.Like if the button has focus on it and if user presses Enter it must react to that.
i added the following code :
addRowButton.getInputMap().put(javax.swing.KeyStroke.getKeyStroke("ENTER"),"pressed");
addRowButton.getActionMap().put("pressed",new AbstractAction(){
public void actionPerformed(ActionEvent evt) {
addRowButtonActionPerformed(evt);
addRowButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addRowButtonActionPerformed(evt);
});So if i want to react to both key pressed event and on mouse click........
do i have to follow same thing or is there any other way to do it.
because when i removed the action listner then its no longer react to the event clicked
and if i remove the binding then it will not reacts on key event
so is there any way to club this thing togather.
or is there any better way to do it
Check out the [Enter Key and Button|http://www.camick.com/java/blog.html?name=enter-key-and-button] suggestions.
Similar Messages
-
How to implement a keyListener in JSF/JSP
Hello,
I�m using JSC and want to implement a keyListener in my application. I want to press ENTER and a method in my java class should be called (regardless of the component, which has the focus). Is this possible (normally, a component must have the focus for that)?
I can get the pressed key using javascript but how can I call the corresponding java method? And if I use javascript, that means that a UI-component should gain the focus first to call its javascript method. In this case I don`t even need javascript, because I need a general possibility to catch a key pressed event.
Thanks for suggestionsHi Dan,
Here is some key listner code that makes sure the user only enters numbers. Maybe you can change it for the return button (I think the charCode of the return button is 10, btw)
<script type="text/javascript">
function checkIt(evt)
var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
if (charCode > 31 && (charCode < 48 || charCode > 57))
alert("Please make sure entries are numbers only.");
return false;
return true;
</script>And in the h:inputText I have onkeypress="return checkIt(event)"
Cheers,
Illu -
How to implement smart navigation in JSF or JSP
hi,dear all:
we design a jsp page with tiles,everything is ok.
But we got a problem: when we design many input text or radio button or listbox on our page1.jsf,it will reload to itself when it got error with the component that user keyin and render the page on the top place.
we want user will see the place that he keyin error (droll automatic) not the top of the page.
we see that already done by asp.net's "smart navigation",but we must write in jsf.
How to do that next step? thank you very much.Hi Dan,
Here is some key listner code that makes sure the user only enters numbers. Maybe you can change it for the return button (I think the charCode of the return button is 10, btw)
<script type="text/javascript">
function checkIt(evt)
var charCode = (evt.charCode) ? evt.charCode : ((evt.which) ? evt.which : evt.keyCode);
if (charCode > 31 && (charCode < 48 || charCode > 57))
alert("Please make sure entries are numbers only.");
return false;
return true;
</script>And in the h:inputText I have onkeypress="return checkIt(event)"
Cheers,
Illu -
Unable to Start Listner for 10g R2 after windows xp pro restart.
Database worked just fine until a system reboot after installing the Apache server and Apex 2.2 The service start and I'm able to connect to the database SQL*PLUS without specifying the host string
SQL*PLUS
User Name: xxxxx
Password : xxxxx
Host String: <Blank>
connect without any problem.
Once I include the orcl name I can't connect and get the following error message
TNS-12541: TNS: no listner
LSNRCTL> start
Starting tnslsnr: please wait...
Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
LSNRCTL>
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
#Oracle Database 10g Enterprise Edition\
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
listner.ora as following
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\Db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
I have another home for the Apache Server.
Everything was just fine, Oracle, Apache, EM, and Apex.
I checked the path for windows it looks good, checked the registery looks good, two homes listed.
When I check the status for the LISTNER is win Service it show start
OracleOraDb10g_home1TNSListener
I have another listner OracleOraDb10g_home1TNSListenerLISTNER1 I don't know why it's there?
TNSPING ORCL WORKS
WITH THE SAME EORROR MESSAGE
PING WORK FOR THE HOST IP NO PROBLEM.
Please see the following to Analyze the Problem:
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl status orcl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:24
:50
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(C
ONNECT_DATA=(SERVICE_NAME=orcl)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:25
:23
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:25
:41
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
C:\oracle\product\10.2.0\db_1\BIN>path
PATH=C:\oracle\product\10.2.0\Db_1\bin;C:\oracle\product\10.2.0\Db_1\jre\1.4.2\b
in\client;C:\oracle\product\10.2.0\Db\jre\1.4.2\bin;;C:\oracle\product\10.2.0\db
\bin;C:\oracle\product\10.2.0\db\jlib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\
System32\Wbem;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:\Program Fil
es\Common Files\Roxio Shared\DLLShared;D:\Program Files\Microsoft Visual Studio\
Common\Tools\WinNT;D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;D
:\Program Files\Microsoft Visual Studio\Common\Tools;D:\Program Files\Microsoft
Visual Studio\VC98\bin
C:\oracle\product\10.2.0\db_1\BIN>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 16 21:26:44 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> show user
USER is "SYSTEM"
SQL> select name from v$database;
NAME
ORCL
SQL>
IN THE PAST I WAS ABLE TO CONNECT TO ALL BUT NOW,
I'M UNABLE TO LOGIN TO APEX NEITHER EM DUE TO ORCL LISTNER.
Like I said before I have no problem connecting to SQL*PLS, BUT I can't Login to orcl APEX nor EM.
Any suggestion or solutions is really apreciated. I'm looking forward to hear from you ACES.......
Thank You Very Much,
MhndHi
Check this out.
TNS-12560: "protocol adapter error"
Cause: A generic protocol adapter error occurred.
Action: Check addresses used for proper protocol specification.
For further details, turn on tracing and reexecute the operation. Turn off tracing when the operation is complete.
TNS-00530: "protocol adapter error"
Cause: A generic protocol adapter error occurred.
Action: For further details, turn on tracing and reexecute the operation.
Proposed Solution on metalink.
Solution Description:
=====================
Delete the protocols in your "listener.ora" file that you do not use.
Edit the "listener.ora" file and look at the protocol section. Make sure that
only the protocols that you use on your system are there (i.e., TCP, IPC, ...)
and that there are no entries listed for SPX or NMP (named pipes).
Regards
Adnan
Since you are only using TCP I don't think that is the issue. You should turn on tracing to get more details.
Message was edited by: Adnan
amashhadi -
Unable to Start Listner for 10g R2 after windows xp pro restart. Please!
Database worked just fine until a system reboot after installing the Apache server and Apex 2.2 The service start and I'm able to connect to the database SQL*PLUS without specifying the host string
SQL*PLUS
User Name: xxxxx
Password : xxxxx
Host String: <Blank>
connect without any problem.
Once I include the orcl name I can't connect and get the following error message
TNS-12541: TNS: no listner
LSNRCTL> start
Starting tnslsnr: please wait...
Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
LSNRCTL>
# tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\Db_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
#Oracle Database 10g Enterprise Edition\
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
listner.ora as following
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\Db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\Db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
I have another home for the Apache Server.
Everything was just fine, Oracle, Apache, EM, and Apex.
I checked the path for windows it looks good, checked the registery looks good, two homes listed.
When I check the status for the LISTNER is win Service it show start
OracleOraDb10g_home1TNSListener
I have another listner OracleOraDb10g_home1TNSListenerLISTNER1 I don't know why it's there?
TNSPING ORCL WORKS
WITH THE SAME EORROR MESSAGE
PING WORK FOR THE HOST IP NO PROBLEM.
Please see the following to Analyze the Problem:
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl status orcl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:24
:50
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(C
ONNECT_DATA=(SERVICE_NAME=orcl)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl services
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:25
:23
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
32-bit Windows Error: 61: Unknown error
C:\oracle\product\10.2.0\db_1\BIN>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-MAR-2007 21:25
:41
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting tnslsnr: please wait...
Service OracleOraDb10g_home1TNSListener already running.
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
C:\oracle\product\10.2.0\db_1\BIN>path
PATH=C:\oracle\product\10.2.0\Db_1\bin;C:\oracle\product\10.2.0\Db_1\jre\1.4.2\b
in\client;C:\oracle\product\10.2.0\Db\jre\1.4.2\bin;;C:\oracle\product\10.2.0\db
\bin;C:\oracle\product\10.2.0\db\jlib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\
System32\Wbem;"C:\Program Files\Zone Labs\ZoneAlarm\MailFrontier";C:\Program Fil
es\Common Files\Roxio Shared\DLLShared;D:\Program Files\Microsoft Visual Studio\
Common\Tools\WinNT;D:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;D
:\Program Files\Microsoft Visual Studio\Common\Tools;D:\Program Files\Microsoft
Visual Studio\VC98\bin
C:\oracle\product\10.2.0\db_1\BIN>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 16 21:26:44 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: system
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> show user
USER is "SYSTEM"
SQL> select name from v$database;
NAME
ORCL
SQL>
IN THE PAST I WAS ABLE TO CONNECT TO ALL BUT NOW,
I'M UNABLE TO LOGIN TO APEX NEITHER EM DUE TO ORCL LISTNER.
Like I said before I have no problem connecting to SQL*PLS, BUT I can't Login to orcl APEX nor EM.
Any suggestion or solutions is really apreciated. I'm looking forward to hear from you ACES.......
Thank You Very Much,
MhndHi
Check this out.
TNS-12560: "protocol adapter error"
Cause: A generic protocol adapter error occurred.
Action: Check addresses used for proper protocol specification.
For further details, turn on tracing and reexecute the operation. Turn off tracing when the operation is complete.
TNS-00530: "protocol adapter error"
Cause: A generic protocol adapter error occurred.
Action: For further details, turn on tracing and reexecute the operation.
Proposed Solution on metalink.
Solution Description:
=====================
Delete the protocols in your "listener.ora" file that you do not use.
Edit the "listener.ora" file and look at the protocol section. Make sure that
only the protocols that you use on your system are there (i.e., TCP, IPC, ...)
and that there are no entries listed for SPX or NMP (named pipes).
Regards
Adnan
Since you are only using TCP I don't think that is the issue. You should turn on tracing to get more details.
Message was edited by: Adnan
amashhadi -
Oracle RAC 11g each listner correlated to a different IP
Hi expert,
a question about Oracle RAC 11g. I have 2 server RAC1 and RAC2, I must be have:
- Public interface that will be used for client communication
- Virtual IP address (VIP) that will be bind by Oracle Clusterware to the public interface
- Private interface that will be used for inter-cluster traffic. There are four major categories of inter-cluster traffic
this is my ipotetic configuration:
RAC1:
* hostname: rac1.localdomain
* IP Address eth0: 192.168.2.101 (public address)
* Default Gateway eth0: 192.168.2.1 (public address)
* IP Address eth1: 192.168.0.101 (private address)
* Default Gateway eth1: none
RAC2:
* hostname: rac2.localdomain
* IP Address eth0: 192.168.2.102 (public address)
* Default Gateway eth0: 192.168.2.1 (public address)
* IP Address eth1: 192.168.0.102 (private address)
* Default Gateway eth1: none
RAC1:
127.0.0.1 localhost.localdomain localhost
# Public
192.168.2.101 rac1.localdomain rac1
192.168.2.102 rac2.localdomain rac2
#Private
192.168.0.101 rac1-priv.localdomain rac1-priv
192.168.0.102 rac2-priv.localdomain rac2-priv
#Virtual
192.168.2.111 rac1-vip.localdomain rac1-vip
192.168.2.112 rac2-vip.localdomain rac2-vip
#NAS
192.168.2.101 nas1.localdomain nas1
LISTENER_RAC2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.102)(PORT = 1521)(IP = FIRST))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
LISTENER_RAC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.101)(PORT = 1521)(IP = FIRST))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
)on the single server, for example, RAC1 I can configure another ethx for this VIP IP?
192.168.2.111 rac1-vip.localdomain rac1-vipor Oracle create a virtual interfaces? (for example eth0:1)
One more question. I want configure 2 listner with 2 different port, the first on 1521 and the second on 1522. Each listner correlated to a different IP
Should I configure for each server these IP?
2 VIP
2 Public
1 Private
like this, for example:
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1a-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1b-vip)(PORT = 1522)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2a-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2b-vip)(PORT = 1522)(IP = FIRST))
many thanks for all suggest,
LainNo matter how many number of listeners that you run ... You need only 1 public ip,1 vip, 1 private ip for each node of the cluster.
All the listeners on that node use the same vip but listens only on different port numbers that you choose ...
Thanks
Sreekanth -
Hi,
Oracle Version:11.2.0.1.0
Operating system:Linux
We just installed the 11g software and created a database but unable to connect the database through client .
status:Failure-Test failed:Listener refused the connection with the following error:ORA-12505,Tns:listner does not currently know of sid given in connect descriptor The connection descriptor used by the client was:192.168.3.14.........Here is my lisnter.ora file.
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oel5-11gr2.localdomain)(PORT = 1521))
ADR_BASE_LISTENER1 = /u01/app/oracle
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.143)(PORT = 1521))
ADR_BASE_LISTENER = /u01/app/oracle[oracle@virdemo app]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-DEC-2009 04:07:57
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-DEC-2009 04:07:57
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
The listener supports no services
The command completed successfully
and my tnsnames.ora# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
CAPTURE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oel5-11gr2.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = capture)Hi,
I was able to start the listener but unable to connect to database through client and i am getting error like this.
status:Failure-Test failed:Listener refused the connection with the following error:ORA-12505,Tns:listner does not currently know of sid given in connect descriptor The connection descriptor used by the client was:192.168.3.14.........Here is my listner.ora file
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.143)(PORT = 1521))
[oracle@virdemo admin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 14-DEC-2009 06:45:38
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 14-DEC-2009 06:45:38
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/virdemo/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.143)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@virdemo admin]$ -
Hello all,
Is there a way that in a Photoshop .jsx file I can insert at some point a snippet of code that simulates the user hitting the "Enter" key on the keyboard?
Found this, does not work in a javascript. I think this is apple script? A solution in javascript will be more than welcomed...
#target photoshop
app.bringToFront();
app.system( 'osascript -e \'tell application "System Events" to key code 13\'' );Hello,
Using photoshop's script listner I recorded in a .jsx file some print actions. Just before printing I get the warning "The image is larger than the paper's printable area, and some clipping will occur". I do not whis to fix the problem that causes this warning, numerous reasons. I have to click "Proceed" (or hit the Enter key) to continue, No big deal, but when you do this thousands of times it becomes a big deal
My plan:
1. either stop photoshop from showing this warning (or any warnings). - No luck
2. Simulate an enter key hit and proceed with printing
Here is part of the script, the problem appears just below the first block (see my comment):
// =======================================================
var id25 = charIDToTypeID( "setd" );
var desc9 = new ActionDescriptor();
var id26 = charIDToTypeID( "null" );
var ref8 = new ActionReference();
var id27 = charIDToTypeID( "Prpr" );
var id28 = stringIDToTypeID( "printOptions" );
ref8.putProperty( id27, id28 );
var id29 = charIDToTypeID( "Dcmn" );
var id30 = charIDToTypeID( "Ordn" );
var id31 = charIDToTypeID( "Trgt" );
ref8.putEnumerated( id29, id30, id31 );
desc9.putReference( id26, ref8 );
var id32 = charIDToTypeID( "T " );
var desc10 = new ActionDescriptor();
var id33 = charIDToTypeID( "PgSt" );
var desc11 = new ActionDescriptor();
var id34 = charIDToTypeID( "Rslt" );
var id35 = charIDToTypeID( "#Pxl" );
desc11.putUnitDouble( id34, id35, 300.000000 );
var id36 = charIDToTypeID( "PgPs" );
var id37 = charIDToTypeID( "PgPs" );
var id38 = stringIDToTypeID( "userDefined" );
desc11.putEnumerated( id36, id37, id38 );
var id39 = charIDToTypeID( "Left" );
var id40 = charIDToTypeID( "#Rlt" );
desc11.putUnitDouble( id39, id40, 0.000000 );
var id41 = charIDToTypeID( "Top " );
var id42 = charIDToTypeID( "#Rlt" );
desc11.putUnitDouble( id41, id42, 1.417323 );
var id43 = charIDToTypeID( "Scl " );
var id44 = charIDToTypeID( "#Prc" );
desc11.putUnitDouble( id43, id44, 100.000000 );
var id45 = charIDToTypeID( "PgSt" );
desc10.putObject( id33, id45, desc11 );
var id46 = charIDToTypeID( "PMps" );
var desc12 = new ActionDescriptor();
var id47 = charIDToTypeID( "PstS" );
desc12.putBoolean( id47, true );
var id48 = charIDToTypeID( "Inte" );
var id49 = charIDToTypeID( "Inte" );
var id50 = charIDToTypeID( "Clrm" );
desc12.putEnumerated( id48, id49, id50 );
var id51 = charIDToTypeID( "SstI" );
desc12.putData( id51, String.fromCharCode( 189, 0, 1, 0, 226, 2, 0, 0, 226, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 33, 0, 0, 213, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 33, 0, 0, 213, 23, 0, 0, 0, 1, 123, 5, 0, 0, 224, 3, 0, 0, 1, 0, 1, 0, 1, 0, 108, 108, 117, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) );
var id52 = charIDToTypeID( "PMps" );
desc10.putObject( id46, id52, desc12 );
var id53 = stringIDToTypeID( "printOptions" );
desc9.putObject( id32, id53, desc10 );
executeAction( id25, desc9, DialogModes.NO );
// Here is where the warning pops up. It is here that I need to simulate an enter key hit...
// =======================================================
var id54 = charIDToTypeID( "Prnt" );
var desc13 = new ActionDescriptor();
var id55 = charIDToTypeID( "PstS" );
desc13.putBoolean( id55, true );
var id56 = charIDToTypeID( "Inte" );
var id57 = charIDToTypeID( "Inte" );
var id58 = charIDToTypeID( "Clrm" );
desc13.putEnumerated( id56, id57, id58 );
var id59 = charIDToTypeID( "SstI" );
desc13.putData( id59, String.fromCharCode( 189, 0, 1, 0, 226, 2, 0, 0, 226, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 33, 0, 0, 213, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 33, 0, 0, 213, 23, 0, 0, 0, 1, 123, 5, 0, 0, 224, 3, 0, 0, 1, 0, 1, 0, 1, 0, 108, 108, 117, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ) );
executeAction( id54, desc13, DialogModes.NO ); -
dear fellows
i have installed 9ids on wxp it connects but when i try to run any form it says
"FRM-10142 HTTP LISTNER IS NOT RUNNING ON YOUR MACHINE PLEASE START THE LISTNER OR CHECK YOUR RNUTIME PREFRANCE"
PLZ HELP ME TO GET OUT OF THIS PROBLEM
THANKS
KASHIF SOHAILOK GUYS I AM OUT OF THIS ISSUE BUT NOW FACING ANOTHER ISSUE
WHEN I RUN FORM APPLETS SHOWS AND THEN
COME WITH
ALERT STATING
"FRM-92928 POSITIONAL PARAMETER AFTER KEY ON COMMAND LINE"
DOES ANY BODY HELP ME
DO I HAVE TO INSTALL 9IAS TOO AS I HAVE NOT INSTALLED IT BUT 9IDS AND ORACLE 8i
AS DATABASE
KASHIF -
Hi,
Is it possible to get the status of instance and listner availability with help of sql queries instead of Unix shell script or unix command? is there any view available like v$listner and statusin the dictionary.
sorry if the question is as basic one.
Thanks in Advance.ASP wrote:
Hi,
Is it possible to get the status of instance and listner availability with help of sql queries instead of Unix shell script or unix command? is there any view available like v$listner and statusin the dictionary.
sorry if the question is as basic one.To check the listener's status, there is already an executable available, lsnrctl .
[oracle@eg8855 bin]$ ./lsnrctl status
LSNRCTL for Linux: Version 11.1.0.6.0 - Production on 21-SEP-2011 20:11:00
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER_EG8855
Version TNSLSNR for Linux: Version 11.1.0.6.0 - Production
Start Date 19-SEP-2011 02:19:13
Uptime 2 days 17 hr. 51 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.1.0/asm_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/eg8855/listener_eg8855/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.216.110.119)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.216.109.2)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "RDBF" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "RDBFXDB" has 2 instance(s).
Instance "RDBF1", status READY, has 1 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "RDBF_XPT" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "TABF" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "TAFB" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "sel" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "service1" has 1 instance(s).
Instance "RDBF2", status READY, has 1 handler(s) for this service...
Service "sess" has 2 instance(s).
Instance "RDBF1", status READY, has 2 handler(s) for this service...
Instance "RDBF2", status READY, has 1 handler(s) for this service...
The command completed successfullyTo check the status of the Instance, you can use the V$instance view. As Ed has shown already, there is no view with the name Listener(doesn't make sense to have it too as there is already an executable for the same available) .
HTH
Aman.... -
I am not able to start or stop my Listner through command prompt.
While starting it is giving following error
LSNRCTL> start
Starting tnslsnr: please wait...
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
While stopping
LSNRCTL> stop
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
TNS-01190: The user is not authorized to execute the requested listener command
Can anybody give a suitable solution for meI am having the same issue with the TNSlistener on Vista. My log is the following:
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
03-AUG-2007 14:35:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Mike))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169870080)) * status * 0
Error message is:
Started with pid=3656
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.48)(PORT=1521)))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS:protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
32-bit Windows Error: 49: Unknown error
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) -
TNS-12547 error listner start.
Hi all.
I have installed Oracle 10GR2 on Oracle Unbreakable Red Hat Linux 4 AS.
When I startup db through sqlplus, db started ok. But when I try start listner,
I receive the following:
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
TNS-00517: Lost contact
Linux Error: 104: Connection reset by peer
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=host.domain)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Please help me.
Andrew.There is my tnsname.ora :
# tnsnames.ora Network Configuration File: /home/oracle/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
STRM.HOST_NAME =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = HOST_NAME)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = STRM. HOST_NAME)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
) -
I am using oracle 8 database.The machine that owns the database have two network card(have different IP address).The problem is that i can connect to oracle in One IP address.while iam trying to connect to oracle in another ip it shows no listner error.i edit the tnsnames.ora file in the client.The listner.ora file has the system name not the ip address...
Pls help me
NoelIf you want to listen by both IP you have to add a line in the listener.ora file and reload the listener.
[oracle@ozawa admin]$ more listener.ora
# LISTENER.ORA Network Configuration File: /opt/ora9/product/9.2/network/admin/l
istener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = IP1)(PORT = 1521) (ADDRESS = (PROTOCOL = TCP)(HOST = IP2)(PORT = 1521))
(DESCRIPTION =
(PROTOCOL_STACK =
(PRESENTATION = GIOP)
(SESSION = RAW)
(ADDRESS = (PROTOCOL = TCP)(HOST = ozawa)(PORT = 2481))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/ora9/product/9.2)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = LDEVCARD)
(ORACLE_HOME = /opt/ora9/product/9.2)
(SID_NAME = LDEVCARD)
(SID_DESC =
(GLOBAL_DBNAME = LCONVCLA)
(ORACLE_HOME = /opt/ora9/product/9.2)
(SID_NAME = LCONVCLA)
(SID_DESC =
(GLOBAL_DBNAME = LQACNS1)
(ORACLE_HOME = /opt/ora9/product/9.2)
(SID_NAME = LQACNS1)
reload the listener so:
lsnrctl reload
Joel Pérez
http://otn.oracle.com/experts -
hi Guru's
when i am trying to use expdp i am getting following error
[oracle@localhost ~]$ expdp scott/tiger@oracl full=y directory=test dumpfile=fulldump.dmp logfile=full.log
Export: Release 10.2.0.1.0 - Production on Sunday, 26 June, 2011 10:46:45
Copyright (c) 2003, 2005, Oracle. All rights reserved.
UDE-00008: operation generated ORACLE error 12154
ORA-12154: TNS:could not resolve the connect identifier specified
[oracle@localhost ~]$tnsnames.ora
-------------------# tnsnames.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
SOMU =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = somu)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)----------------------listner.ora-----------------
# listener.ora Network Configuration File: /home/oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /home/oracle/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
)my SID is "orcl" where i am working ...................
Edited by: CHETAN YADAV on Jun 26, 2011 11:01 AM -
Hi,
I have standalone 11gR2 database on AIX, after I installed I created a database called NONRAC using dbca and then I dropped that database then created another database called NEWDB. Now I tried to create listner using netca, the database is not registered in the listener. then I deleted the listner using netca and then added listener using
srvctl add listener -l LISTENER -p TCP:1521 -o /ora01/app/oracle/product/11.2.0.2 and stared it using srvctl start listener -l LISTENER. But when I do lsnrctl, I see the databse NONRAC is registed and not NEWDB, I verified the ORACLE_HOME, ORACLE_SID environment variables and they are all set right. Anyone know from where it is getting the database NONRAC and why the NEWDB is not registered within the listener? I tried alter system register as well and I didn't work.
ThanksOracle version is 11.2.0.2 and here is the lsnrctl output
LSNRCTL for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production on 09-NOV-2011 09:18:04
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=avvpdb01)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
Start Date 09-NOV-2011 09:17:12
Uptime 0 days 0 hr. 0 min. 52 sec
Trace Level off
Security ON: Local OS Authentication
SNMP ON
Listener Parameter File /ora01/grid/network/admin/listener.ora
Listener Log File /ora01/grid/log/diag/tnslsnr/avvpdb01/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.27.51.121)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM", status READY, has 1 handler(s) for this service...
The command completed successfully
Edited by: Rock2 on Nov 9, 2011 9:18 AM
Maybe you are looking for
-
How can I export Outlook 2007 contacts to Leopard Address Book application?
Hi, I just bought a MAC and I want to get rid of my PC, but first i want to export my CONTACTS from my Windows MS Outlook 2007 and import them in Leopard Address Book application. Any way I can do that ? Many thanks !
-
How to avoid sample printout in check printing
hi in fico check printing i have copied the standard script F110_PRENUM_CHCK and devloped a z to add the company logo the problem with the printout is that it displays an additional sample printout on first page followed by the required print on the
-
The smaller picture in face time bounced around the screen and has disappeared. How can I get it back.?
-
Hi all, I have configured the the lower limit and higher limit both percentge & absolute value as 0% or 0 Value for tolerance limit PP. However, when i post the invoice $90 for a PO of $100. The invoice is not blocked for payment. But i saw the warni
-
Strange SQL error when starting VCServer
Hello, I just installed the Visual Composer Server on the same box as my EP6SP2. When I, from a client, tries to access http://server/VCServer/ the application starts up, and launches a window where I must make a new model. If i here tries to enter a