Question about SSL Handshake Procedure
Hi,
Here is the first thing that occurs for an SSL handshake (from Wikipedia):
* The handshake begins when a client connects to a TLS-enabled server requesting a secure connection, and presents a list of supported ciphers and hash functions.
My question is where does the client keep the list of supported ciphers and hash functions (if they do at all)?
Thanks
Jatinder
See SSLSocket.getEnabledCipherSuites() and SSLSocket.getSupportedCipherSuites().
Similar Messages
-
When I try to stablish a secure connection (via
https://localhost:7002/AdminMain) the console gives me this error (please
see
below), which is the same when I run . startWebLogic.sh to start it.
Two questions:
1.- What is this problem about?
2.- Even with this error, I can see AdminMain in secure mode. Should I be
worried about the
error?
I'm using Weblogic Server Manager 5.1.0 04/03/2000 17:13:23 #66825 (without
any service pack) on a Red Hat Linux 6.2 Machine & jdk 1.2.2
Thanks in advance
Sergio Rios Mendoza
Departamento de Sistemas
Corporativo de Servicios Grupo Comercial Mexicana
PS: this is the error:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Tue Nov 14 15:31:51 CST 2000:<I> <ServletContext-General> AdminMain: init
Tue Nov 14 15:31:54 CST 2000:<I> <ServletContext-General> servletimages:
init
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)When I try to stablish a secure connection (via
https://localhost:7002/AdminMain) the console gives me this error (please
see
below), which is the same when I run . startWebLogic.sh to start it.
Two questions:
1.- What is this problem about?
2.- Even with this error, I can see AdminMain in secure mode. Should I be
worried about the
error?
I'm using Weblogic Server Manager 5.1.0 04/03/2000 17:13:23 #66825 (without
any service pack) on a Red Hat Linux 6.2 Machine & jdk 1.2.2
Thanks in advance
Sergio Rios Mendoza
Departamento de Sistemas
Corporativo de Servicios Grupo Comercial Mexicana
PS: this is the error:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Tue Nov 14 15:31:51 CST 2000:<I> <ServletContext-General> AdminMain: init
Tue Nov 14 15:31:54 CST 2000:<I> <ServletContext-General> servletimages:
init
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) -
My first two questions about SSL
When I try to stablish a secure connection (via
https://localhost:7002/AdminMain) the console gives me this error (please
see
below), which is the same when I run . startWebLogic.sh to start it.
Two questions:
1.- What is this problem about?
2.- Even with this error, I can see AdminMain in secure mode. Should I be
worried about the
error?
I'm using Weblogic Server Manager 5.1.0 04/03/2000 17:13:23 #66825 (without
any service pack) on a Red Hat Linux 6.2 Machine & jdk 1.2.2
Thanks in advance
Sergio Rios Mendoza
Departamento de Sistemas
Corporativo de Servicios Grupo Comercial Mexicana
PS: this is the error:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Tue Nov 14 15:31:51 CST 2000:<I> <ServletContext-General> AdminMain: init
Tue Nov 14 15:31:54 CST 2000:<I> <ServletContext-General> servletimages:
init
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)That error about "no jsafe" occurs if you have not applied any service
pack at all ( as you have said ). Get the latest SP ( SP6 ) and it
should go away.
John
Sergio Rios Mendoza wrote:
>
When I try to stablish a secure connection (via
https://localhost:7002/AdminMain) the console gives me this error (please
see
below), which is the same when I run . startWebLogic.sh to start it.
Two questions:
1.- What is this problem about?
2.- Even with this error, I can see AdminMain in secure mode. Should I be
worried about the
error?
I'm using Weblogic Server Manager 5.1.0 04/03/2000 17:13:23 #66825 (without
any service pack) on a Red Hat Linux 6.2 Machine & jdk 1.2.2
Thanks in advance
Sergio Rios Mendoza
Departamento de Sistemas
Corporativo de Servicios Grupo Comercial Mexicana
PS: this is the error:
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:529)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Tue Nov 14 15:31:51 CST 2000:<I> <ServletContext-General> AdminMain: init
Tue Nov 14 15:31:54 CST 2000:<I> <ServletContext-General> servletimages:
init
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1287)
at java.lang.Runtime.loadLibrary0(Runtime.java:469)
at java.lang.System.loadLibrary(System.java:774)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at
weblogic.security.SSL.ClientKeyExchange.input(ClientKeyExchange.java:132)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.serverInit2(SSLSocket.java:655)
at weblogic.security.SSL.SSLSocket.serverInit(SSLSocket.java:546)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:219)
at
weblogic.security.SSL.SSLSocket.performAcceptHandshake(SSLSocket.java:192)
at
weblogic.security.SSL.SSLSocket.getInputStream(SSLSocket.java:1001)
at weblogic.socket.ResettableSocket.<init>(ResettableSocket.java:30)
at
weblogic.socket.JVMSocketManager.accept(JVMSocketManager.java:377)
at
weblogic.t3.srvr.ListenThread$RJVMListenRequest.execute(ListenThread.java:50
6)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) -
Questions about CIN tax procedure choice and pricing schemas
Hi all,
I have to implement SAP on a Indian company and I'm verifying all particularity about this country (in particular tax procedures and the great number of differents tax conditions used).
I have two questions about tax procedures and pricing schemas. Every feedback about thse points will be appreciated.
a) To choose tax procedure TAXINN or TAXINJ which are the elements that I have to consider?
I have read lot of documentation about CIN implementation and Iu2019m oriented to choose TAXINN schema, but If possible I would to understand better which are on behalf of one choice or another.
b) To define pricing schemas for India, after check with local users and using examples of documents (in particular tax invoice) actually produced, I have understood that taxes have to be applied on amount defined starting from price list, minus discounts recognized to customer plus surcharges eventually to bill (packing, transport, etc.).
Itu2019s correct for any type of taxes that tax amount is calculated on u201Cnet valueu201D defined at item level or there are exceptions to this rule?
Thanks in advance
Gianpaolohi,
this is to inform you that,
a) About point 1 I know the difference between the 2 tax procedures (conditions or formulas). I also have read in others post in the FORUM that TAXINN is preferable. So I would to understand which are the advantages to choose instead TAXINJ. There are particular reasons or it'a only an alternative customizing setting?
a.a. for give for posting the link : plese give me the advantages of TAXINJ and TAXINN
CIN - TAXINN and TAXINJ
b) About point 2, to define which value has to be used as base amount to calculate taxes isn't a choice, but is defined depending by fiscal requirement of the country, in this case India fiscal requirement. I know that, as Lakshmipathi
write as answer on my question, exception could be, but it was important for me to understand if I have understood correctly the sequence of the pricing condition in the schema in "normal" situation.
b.b. you can create your own pricing procedure for this and go ahead.
hope this clears your issue.
balajia -
Question about calling a procedure from a URL
Hi
In an Apex 3.0 application (which is not public) I use a procedure call in a URL to download the person's photo, if any. The call looks like this:
{img src=#OWNER#.download_photo?p_id=&P10_ID.}
This works fine. However, I found out that I can run that procedure just typing that URL in a web browser, without the need to be logged in to any application!
This seems to me like a flaw in my procedure and I think I am missing something. In a way it makes sense, as there is not any reference in the URL to the application.
How can I make this procedure to run only if I am logged in the application it is supposed to be run from?
Thanks
LuisLuis,
There is a section (Security Issues to Consider) in the file upload/download how-to that describes how to handle this. Also, Anton Nielsen describes a technique linked to from Re: About file .
Scott -
Question about syntax in procedures
I've worked with SQL-based environments for a few years but just now getting into Oracle.
This is probably a very simple question, but why do some commands have to be wrapped in an EXECUTE IMMEDIATE statement within a procedure? For example, the following procedure compiles with warnings but does not execute (generates an error message):
CREATE PROCEDURE MY_PROC
AS
BEGIN
DROP TABLE ABC;
CREATE TABLE ABC AS SELECT * FROM XYZ;
END
But, this procedure compiles and executes just fine (assuming, of course, the existence of table XYZ):
CREATE PROCEDURE MY_PROC
AS
SQL_STMT varchar(4000);
BEGIN
SQL_STMT := 'DROP TABLE ABC';
EXECUTE IMMEDIATE SQL_STMT;
SQL_STMT := 'CREATE TABLE ABC AS SELECT * FROM XYZ';
EXECUTE IMMEDIATE SQL_STMT;
END
Why does one have to do that? Which other keywords need to be "wrapped"?
Thanks in advance for your help.
CarlHi,
There are PL/SQL commands for DML statements (INSERT, UPDATE, ...) that work like the corresponding SQL commands. In fact, they work so much like the corresponding SQL commands that you might not even realize they are different!
There are not PL/SQL commands for CREATE TABLE, DROP TABLE, and most other SQL commands. To do these things from within PL/SQL, you have to use
EXECUTE IMMEDIATE.
Edited by: Frank Kulash on Mar 24, 2009 4:28 PM
See the [PL/SQL manual|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/static.htm#BABGEDAE] for more details. -
Question about one stored procedure and a few entity objects
There are few EOs in the project. At the same time there is a single stored procedure that has to be used for data modification.
This procedure updates db tables that are mapped to these EOs. How do I implement doDML operation in this case?
I have to call stored procedure from a single main EO, and disable data modification in the rest of EOs. Is it possible?
If so, how do I pass parameters from other EOs, because in a doDML method i have a scope of this particular EO attributes, and do not have acces to the attributes of other EOs?
Thanks!I am not sure with imovie since I use only Final Cut Pro. iDVD setting will let you expand the file for length. Naturaly the best quality pr performance will take less time of a file. In the case with iDVD 4 the best quality will only take 60 minutes of video already compressed. Best performance will take up to about 1 hour nd 49 minutes. You have to leave enough room for the menu to take up some space on the disc as well. In FCP we have to export as a quicktime file where with a 1 hour 30 min video can take about 20 minutes to export. the burning and compression time depends on the system you have. G5 faster, G4 like mine takes longer. on that same video idvd 4 will take about 3 hours to convert and burn the disc. When I use DVD Pro Studio that is way different and take a lot longer. I have had a typical 2 hour video take up to 14 hours to convert/export to a MPEG 2 format or DVD format. But the burning process take about an hour. It all depends on your equipment.
Hope that helps. -
Question about trigger and procedure
Hi,
I have a trigger on a table tbl1 (after AFTER INSERT OR UPDATE ... for each row).
This trigger start a procedure which make some test. At the end of the procedure, I had to update a flag on tbl1, but without using the trigger !!!
Is it possible ?not a mutating table error but ORA-00060: deadlock detected while waiting for resource.
For your question :
Is the flag on the same row as you are updating then you can update it in the trigger ?
Yes, this is a field to update for row state for my application.
The problem is that the update at the end of my procedure start the trigger that start the procedure and so on !!!
Perhaps you have another idea to do something like this ?
thankx for your answer.
Rémi PILLOT -
Question about executing a procedure what what is replicated
With Logical Standby Apply, if I execute a procedure on Primary database that changes data, is the execution statement replicated or just the changes made in the primary database by the execution?
Hi,
As per my understanding related to standby database architecture,
whatever changes happening on primary database, will apply on physical database also on logical database using SQL APPLY technique...it could be DDL, DML changes...
Regards,
GRB -
Question about MySQL, JDBC, SQLJ, Stored procedure & callable statements
Hi, there. I'm using j2sdk1.4.1_01 and MySQL ver 12.18 Distrib 4.0.12, and when I try to install a store procedure, it throws the following message:
SQLException: Stored procedures not supported: {call sqlj.install_jar('blah...blah...MyProject-20031206.jar', 'routines_jar', 0)}
Who's is not supporting store procedures here? Java or MySQL? What can I do?
The book and sample code I'm using as a reference mention that "the sample code assumes that the DBMS already stores the built-in SQLJ procedure sqlj.install_jar, which loads a set of classes written in the Java programming language in an SQL system". Now my question is: the "SQLJ procedure sqlj.install_jar" is something extra that I need to install or it has nothing to do with the problem?
Is it true that MySQL does not support stored procedures? Thank you in advance for any hint or suggestion.
Regards,
Hector.Who's is not supporting store procedures here? Java or
MySQL?MySQL.
What can I do?1. Don't use stored procedures.
2. Use a database that supports stored procedures.
3. Wait for the release of MySQL that does support stored procedures. -
Is it possible to take control over ssl handshake process?
Hi,
I'd like to write an application that will show whole ssl handshake process step by step. So I was wondering if it is possible to do something like that:
when user connects his ssl client to ssl server he can push eg."Next" button moving to the next handshake step. But to do that i must have control on that handshake process:).
Thanx.Yeah I forgot about read and write. Forgive me please my questions, but I am just beginning programmer. Anyway I still get this exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Ofcourse I screwed something again, can you tell me what?
Here is client part:
while(myAppData.hasRemaining()){
SSLEngineResult result = engine.wrap(myAppData, myNetData);
// System.out.println(result.getStatus()); //here i get BUFFER_OVERFLOW why?
if(result.getStatus() == SSLEngineResult.Status.OK){
myAppData.compact();
while(myNetData.hasRemaining()){
int num = socketChannel.write(myNetData);
System.out.println(num);
if(num == -1){
System.out.println("close channel");
}else if(num == 0){
System.out.println("no write");
System.out.println(result.getStatus());
int bytesConsumed = result.bytesConsumed();
System.out.println("Bytes consumed: "+bytesConsumed);
int bytesProduced = result.bytesProduced();
System.out.println("Bytes produced: "+bytesProduced);
handStatus = result.getHandshakeStatus();
System.out.println(handStatus); //NEED-UNWRAP
}else if(result.getStatus() == SSLEngineResult.Status.BUFFER_OVERFLOW){
// System.out.println(result.getStatus());
}else if(result.getStatus() == SSLEngineResult.Status.BUFFER_UNDERFLOW){
// System.out.println(result.getStatus()); }
and server part:
int num = sc.read(peerNetData);
System.out.println(num);
if(num == -1){
//closed channel
System.out.println("num=-1");
}else if(num == 0){
//no bytes read
System.out.println("num=0");
}else{
peerNetData.flip();
//here I get this exception
result = engine.unwrap(peerNetData, peerAppData);
if(result.getStatus() == SSLEngineResult.Status.OK){
peerNetData.compact();
int bytesConsumed = result.bytesConsumed();
int bytesProduced = result.bytesProduced();
hStat = result.getHandshakeStatus();
SSLEngineResult.Status status = result.getStatus();
System.out.println(status);
System.out.println(hStat);
if(peerAppData.hasRemaining()){
//use peerAppData
} -
A question about CommonName (Subject)
Hello
Can someone please help me with the following question
I understand the 'original' idea behind DN (e.g. CN=,OU,O=,C=) was the idea of have a central world word directory centrally controlled for all countries to use (a bit like a global AD). However due to security and political concerns it never took off. I
therefore believe the full DN is an obsolete concept?
If the above is correct (correct if wrong please), then is it true to say the only part of the name that matters in the DN is the CN e.g. CN=www.MyWebSite.com,ou=IT,o=MyCorp,c=UK
So what I am saying is the 'Subject' is the important entity as that it is the Subject and who is bound the Public key is the CA is satisfied and creates the cert.
Therefore is the Subject the whole DN or just the CN part?
For example if I first issue a cert to a WEB server like so CN=www.MySite.com,OU=IT,O=BigCorp,C=UK than one year latter related the cert with one whose DN was CN=www.MySite.com,OU=IT,O=SmallCorp,C=UK whereby the A record for
www.MySite.Com pointed to the Same WEB Server I bel#Regardsieve this would work the same in both instances as its just matching the CN and not the DN is that correct? Thanks AAnotherUser__
AAnotherUser__> I therefore believe the full DN is an obsolete concept?
it is not obsolete. Where did you read that?
> Therefore is the Subject the whole DN or just the CN part?
Subject is the whole DN. In various scenarios, various RDNs are processed to authenticate the entity.
> Regardsieve this would work the same in both instances as its just matching the CN and not the DN is that correct?
in this case, programmatically only CN is bound to an entity during SSL handshake. However, they might be different entities and user may elect to stop trust any certificate if the rest of the DN is not the one expected.
You should understand that CN only doesn't provide enough information about certificate holder. For example, "CN=John Wayne, O=VeriSign, C=US" is not the same as "CN=John Wayne, O=Maple Leaf, C=CA". The purpose of DN is to uniquely identify
two entities over the world with matching RDNs. Therefore, you should include in CN as much information as possible.
My weblog: en-us.sysadmins.lv
PowerShell PKI Module: pspki.codeplex.com
PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
Check out new: SSL Certificate Verifier
Check out new:
PowerShell FCIV tool. -
IPlanet 6.0 - Enabling HTTP logging to debug SSL Handshake
Hello all,
We have a IPlanet 6.0 web server instance which receives secure HTTP requests from client systems. We are experiencing a SSL handshake failure. We have ensured that the correct certificates are installed at both ends.
A wireshark trace at the web server shows that the Client Hello was received successfully and a Server Hello was never sent. Our conjecture is that this could be because the cipher suites do not match. It could be extremely useful to us if we could enable appropriate levels of logging and/or add JVM options to log the HTTP/SSL handshake transactions.
Can someone help us with the additional logging? If there are questions that I can answer, please let me know.
Thanks,
Sourabh6.0 is EOL (dead). Please upgrade to 7.0.
I can answer SSL protocol questions as far as they apply to 7.0, but don't have any information about 6.0 specifically.
The JVM is not involved in SSL protocol handling. In general for diagnostics, always set the Web Server error log to verbose. That said in this case it probably won't help much, but can't hurt.
If the client hello is being silently ignored there is some higher level problem going on. Either the server has crashed or is hung or maybe it never received the client request or maybe its response was lost (a misbehaving firewall dropping packets, for example). This is not a case of merely having no common ciphersuite, the server would still have sent a failure response if it was able to do so.
It might not reveal much more than wireshark did, but first thing I'd try (after upgrading to 7.0 ;-), is run the connection attempt through ssltap and see what it reports. -
A question about the impact of SQL*PLUS SERVEROUTPUT option on v$sql
Hello everybody,
SQL> SELECT * FROM v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>
OS : Fedora Core 17 (X86_64) Kernel 3.6.6-1.fc17.x86_64I would like to ask a question about the SQL*Plus SET SERVEROUTPUT ON/OFF option and its impact on queries on views such as v$sql and v$session. Here is the problem
Actually I define three variables in SQL*Plus in order to store sid, serial# and prev_sql_id columns from v$session in order to be able to use them later, several times in different other queries, while I'm still working in the current session.
So, here is how I proceed
SET SERVEROUTPUT ON; -- I often activate this option as the first line of almost all of my SQL-PL/SQL script files
SET SQLBLANKLINES ON;
VARIABLE mysid NUMBER
VARIABLE myserial# NUMBER;
VARIABLE saved_sql_id VARCHAR2(13);
-- So first I store sid and serial# for the current session
BEGIN
SELECT sid, serial# INTO :mysid, :myserial#
FROM v$session
WHERE audsid = SYS_CONTEXT('UserEnv', 'SessionId');
END;
PL/SQL procedure successfully completed.
-- Just check to see the result
SQL> SELECT :mysid, :myserial# FROM DUAL;
:MYSID :MYSERIAL#
129 1067
SQL> Now, let's say that I want to run the following query as the last SQL statement run within my current session
SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;According to Oracle® Database Reference 11g Release 2 (11.2) description for v$session
http://docs.oracle.com/cd/E11882_01/server.112/e25513/dynviews_3016.htm#REFRN30223]
the column prev_sql_id includes the sql_id of the last sql statement executed for the given sid and serial# which in the case of my example, it will be the above mentioned SELECT query on the employees table. As a result, right after the SELECT statement on the employees table I run the following
BEGIN
SELECT prev_sql_id INTO :saved_sql_id
FROM v$session
WHERE sid = :mysid AND serial# = :myserial#;
END;
PL/SQL procedure successfully completed.
SQL> SELECT :saved_sql_id FROM DUAL;
:SAVED_SQL_ID
9babjv8yq8ru3
SQL> Having the value of sql_id, I'm supposed to find all information about cursor(s) for my SELECT statement and also its sql_text value in v$sql. Yet here is what I get when I query v$sql upon the stored sql_id
SELECT child_number, sql_id, sql_text
FROM v$sql
WHERE sql_id = :saved_sql_id;
CHILD_NUMBER SQL_ID SQL_TEXT
0 9babjv8yq8ru3 BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;Therefore instead of
SELECT * FROM employees WHERE salary >= 2800 AND ROWNUM <= 10;for the value of sql_text I get the following value
BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES);Which is not of course what I was expecting to find in v$sql for the given sql_id.
After a bit googling I found the following thread on the OTN forum where it had been suggested (well I think maybe not exactly for the same problem) to turn off SERVEROUTPUT.
Problem with dbms_xplan.display_cursor
This was precisely what I did
SET SERVEROUTPUT OFFafter that I repeated the whole procedure and this time everything worked pretty well as expected. I checked SQL*Plus documentation for SERVEROUTPUT
and also v$session page, yet I didn't find anything indicating that SERVEROUTPUT should be switched off whenever views such as v$sql, v$session
are queired. I don't really understand the link in terms of impact that one can have on the other or better to say rather, why there is an impact
Could anyone kindly make some clarification?
thanks in advance,
Regards,
Dariyoosh>
and also v$session page, yet I didn't find anything indicating that SERVEROUTPUT should be switched off whenever views such as v$sql, v$session
are queired. I don't really understand the link in terms of impact that one can have on the other or better to say rather, why there is an impact
Hi Dariyoosh,
SET SERVEROUTPUT ON has the effect of executing dbms_output.get_lines after each and every statement. Not only related to system view.
Here below what Tom Kyte is explaining in this page:
Now, sqlplus sees this functionality and says "hey, would not it be nice for me to dump this buffer to screen for the user?". So, they added the SQLPlus command "set serveroutput on" which does two things
1) it tells SQLPLUS you would like it <b>to execute dbms_output.get_lines after each and every statement</b>. You would like it to do this network rounding after each call. You would like this extra overhead to take place (think of an install script with hundreds/thousands of statements to be executed -- perhaps, just perhaps you don't want this extra call after every call)
2) SQLPLUS automatically calls the dbms_output API "enable" to turn on the buffering that happens in the package.Regards.
Al -
Question about download file in OAS4
Question about download file in OAS4:
I use Oracle Application Server 4.0.7 on my Windows NT 4.0 SP6;
I use PL/Sql Cartridge developer a document system; It's use the
upload/download in PL/Sql Cartridge;
I read the document , the Upload/download in Pl/Sql Base on the
Oracle Application Server's Content Service. the Problem is when I
download a document, If I upload a Html or MsWord file, It will store in a LongRaw column, when me download ; It's tell me can't
find a application to open this file; I will select a application
from list to open the download file;
As normal, It will open MsWord Automatic when download a "doc" file ; also It will open a new window of Browser to view a Html file;
I check the download process on client Browser; when download
file, The content-type always return "application/octet-stream";
Also the download File will lost the postfix of the file,
So Browser don't open the File Automatic;
I think If I set the correct Content-Type , Browser can know how open the file; So I use owa_content.set_content_type procedure
set the Doc file to "application/msword" , but the WEb Server always
return "application/octet-stream";
I didn't know how to do this problem, Plese help me.
nullI have a Tecra M2 and rely on your email update to ensure I have the latest drivers on my machine.
When I received a Toshiba support email on 14 April 2005 giving reference to a QFE from Microsoft I assumed it would be necessary for my Tecra.
I was very confused when I found that this QFE and subsequent ones posted on the 16 April 2005 relate to Pre SP2 critical updates no9t required if one has already taken earlier advice of updating to Service Pack, at the very least your narrative should make mention of this. I find it very difficult to believe that your updates are two+ years out of date.
Maybe you are looking for
-
I've been using Ringtone Maker to add ringtones to my iPhone. The app is now telling me my music I bought from the iTunes store is not exportable. I downloaded a new app called Ringer and it says my song "has no audio tracks". Wha am I doing wrong??
-
[SDK] DateGlobalizationServiceInterface not working
Hello SAP ME community, my current SAP ME version is 5.2.5.5 I realized, that SAP ME is using his own date format ( DateTimeInterface ). I found the DateGlobalizationServiceInterface, which has a lot of useful methods to handle this very special date
-
ITunes won't stop creating duplicates and triplicates in my library!
My issue is that iTunes is creating duplicates of my songs. Over and over and over again. I have the preferences set so that it is saving everything in one folder, etc. It still happens. In fact, not only are there duplicates, there are 4 and 5 copie
-
Restore a single tablespace from full backup erroring out
Hi, I have backed up the full database using RMAN: $ rman catalog rman/rman@catdb target / RMAN> run { backup as compressed backupset format '<Full Path>/databkp/DATA_%d_%s_%p' database plus archivelog format '<Full Path>/arcbkp/ARC_%d_%s_%p'; Backup
-
I have successfully used the GPS and Map application a few times now. I was showing off to a colleague explaining and showing how the GPS worked. The application ran and eventually got good satellite signal but no map. The only thing that I have chan