Configuring Oracle 9i AS to use Java 1.4
Hi All,
Please help me in configuring Oracle 9i Application Server Release 2 to use Java 1.4 Version instead of 1.3 version.
Hi,
Existing settings
I checked in catalina.bat the entry was
echo Using JAVA_HOME: %JAVA_HOME%When I checked in environment variables for JAVA_HOME the value was
C:\j2sdk1.4.2_08Also there is an environment variable
JRE_HOME with value C:\j2sdk1.4.2_08\jrePlease suggest.
Thanks
-Arun
Similar Messages
-
Configuring Oracle ASM 11gR2 to use ASMM
Hello,
Kernel hugepages under Oracle Linux is incompatible with Oracle AMM. The Oracle ASM instance under 11g uses AMM by default. So in order to configure Oracle ASM to use ASMM, what are the recommended settings please?
I reviewed http://docs.oracle.com/cd/E18283_01/server.112/e16102/asminst.htm#CHDBBIBF which outlines some information about various pool size parameters required for ASMM, depending on the size of the datafiles that will used.
But what about typical ASMM parametes like sga_target and pga_aggregate_target, or are these not used in an ASM instance?
How have you configred ASMM for Oracle ASM 11gR2?
Thanks!The minimum MEMORY_TARGET requirment for Oracle ASM is 256 MB. which we have set in ASM.
But what about typical ASMM parametes like sga_target and pga_aggregate_target, or are these not used in an ASM instance? yes ,they will be used ,below snap from aix 6.1 OS
SQL> sho parameter memory
NAME TYPE VALUE
memory_max_target big integer 272M
memory_target big integer 272M
SQL> r
1* select * from V$MEMORY_DYNAMIC_COMPONENTS
COMPONENT CURRENT_SIZE MIN_SIZE MAX_SIZE USER_SPECIFIED_SIZE OPER_COUNT LAST_OPER_TYP LAST_OPER LAST_OPER GRANULE_SIZE
shared pool 201326592 201326592 201326592 0 0 STATIC 4194304
large pool 20971520 12582912 20971520 12582912 2 GROW IMMEDIATE 04-JUN-12 4194304
java pool 0 0 0 0 0 STATIC 4194304
streams pool 0 0 0 0 0 STATIC 4194304
SGA Target 264241152 255852544 264241152 0 2 GROW IMMEDIATE 04-JUN-12 4194304
DEFAULT buffer cache 0 0 0 0 0 STATIC 4194304
KEEP buffer cache 0 0 0 0 0 STATIC 4194304
RECYCLE buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 2K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 4K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 8K buffer cache 0 0 0 0 0 STATIC 4194304
COMPONENT CURRENT_SIZE MIN_SIZE MAX_SIZE USER_SPECIFIED_SIZE OPER_COUNT LAST_OPER_TYP LAST_OPER LAST_OPER GRANULE_SIZE
DEFAULT 16K buffer cache 0 0 0 0 0 STATIC 4194304
DEFAULT 32K buffer cache 0 0 0 0 0 STATIC 4194304
Shared IO Pool 0 0 0 0 0 STATIC 4194304
PGA Target 20971520 20971520 29360128 0 2 SHRINK IMMEDIATE 04-JUN-12 4194304
ASM Buffer Cache 25165824 25165824 25165824 0 0 STATIC 4194304
16 rows selected.Edited by: Kuljeet Pal Singh on Jun 27, 2012 6:59 PM -
How to dynamically configure JPA setting at runtime using java code?
Hi,
I am new to EJB 3.0 and JPA. I am trying to help my company to deploy the use of JPA in EJB3.0. Currently, i am trying out with OpenJPA in IBM Webshpere Application Server 7.0. We have four different WAS servers running for testing, system integration testing, user testing and production respectively, and in each region, the configurations for data source, JDBC username and password, schema, etc are different. So i think i would need to configure the JPA setting during runtime using Java code that determines which is the environment. And apparently i am stuck with the limited knowledge i have.
1) I understand that i could override the JDBC in the persistence xml by creating entity manager using entity manager factory. But is it possible that i do similar thing by using inejction of persistence context on entity manager to obtain a container managed entity manager?
2) Alternatively, it is possible to create multiple persistence unit in the XML and inject different PU to the entity manager, am i right? But how to inject dynamically since @PersistenceContext(unitName="xxx") only accepts constant declaration.
3) Is it possible that the JDBC username and password are read from properties file?
Thanks for your help in advance!Hi
Thanks for the reply.
Are you saying that i have to configure the data source authentication to the backend DB2 using the JAAS-J2C? Correct me if i am mistaken. I guess i am unable to do so as the application server setup only contains one data source, and the server hosted a number of applications. Every applications has their own JDBC username and password supply to the data source (the ID supplied at the DB2 side will decide which resource can access) and thus, i have to supply the username and password at runtime. Talked to the server guy and seems that it is not feasible to have seperate datasource for each applications as considered to the volume of applications hosted inside the server.
Any suggestion? -
Configuring oracle management server 9i using create new repository option
hi ,
i am trying to install oracle management server using the the option "create new repository "on a system on which oracle database is already installed .after installing oracle management server "configuration assistant appears .the second option is to select a database repository .
first of all can i select the database that was prevouisly installed on my system
or do i need to create a new database before installing oracle management server. but as i did not install any database for oracle management server before i am trying to select the database that was previuosly installed on the system but i gave me a tns error that it could not resolve the service name .after that i noticed that the oms listerner was up and registered . i am trying to stop this listener and start the database listerner so that it may not give me this error.can some one help me out configuring oracle management server on a system creating a new repositoryI suggest you to create a different database for the OMS repository. This database can be used for other tools that may require a repository, such as recovery manager.
On the connectivity issue, I suggest you to verify your listener is up and running and it doesn't need to have the instance registered, as of course, it is a new instance. Make sure it is started. For additional troubleshooting on the connectivity issue, you may post the specific tns-12XXX error message displayed.
~ Madrid. -
Configure Advanced options in IE using Java
My requirement is that I need to configure the advanced options of IE browser using java.
I shouldn't manually check and uncheck the check boxes.
All options I should handle it in the coding itself.The client don't want to have all options to be enabled for all the pages.
Its a performance related issue. For example, they want to disable the java which ever page they want.
Similarly for all the options. -
Configuring Oracle Application Server to use a user friendly url
Hi All,
I am having trouble configuring the apache httpd.conf file within an applicaton server to be able to use user-friendly urls for the infrastructure identity management tools server. I also need this for security reasons as well as hardware reasons - loadbalancing.
At the moment I have a standard setup, whereby the sso application server is using port 7777. I would like the user not to enter the port, but to enter just a standard url, like http://login.<company>.com.au, so that if the user needs to modify oid using the oiddas web application, they can enter something like http://login.<company>.com.au/oiddas/ rather than http://<machine host name>:7777/oiddas/. This would also be used by portal for sso logins.
From the standard installation, Apache was configured as follows:
Port 7777
Listen 7777
ServerName <machine host name>
DocumentRoot <root document folder>
Now reading the documentation from the Oracle Application Server Installation notes for the Http Server, they document how to do this (in the loadbalancer section - this will eventually be used in the hardware setup):
Port 80
Listen 7777
Listen 80
# Virtual Hosts
# This section is mandatory for URLs that are generated by
# the PL/SQL packages of the Oracle Portal and various other components
# These entries dictate that the server should listen on port
# 7777, but will assert that it is using port 80, so that
# self-referential URLs generated specify www.oracle.com:80
# This will create URLs that are valid for the browser since
# the browser does not directly see the host server.oracle.com.
NameVirtualHost <machine ip>:7777
<VirtualHost <nameofmachine>:7777>
ServerName login.<company>.com.au
Port 80
</VirtualHost>
# Since the previous virtual host entry will cause all links
# generated by the Oracle Portal to use port 80, the server.company.com
# server needs to listen on 80 as well since the Parallel Page
# Engine will make connection requests to Port 80 to request the
# portlets.
NameVirtualHost <machine ip>:80
<VirtualHost <nameofmachine>:80>
ServerName login.<company>.com.au
Port 80
<VirtualHost>
Note that I used slightly different names for the url's rather than the oracle names www.oracle.com and server.oracle.com
Now after applying this, I noticed not only could I not go to the oiddas from the original machine name, but also couldnt go there from the new machine name.
Also I was not even able to go to the standard index page whereby you can go to the enterprise manager for the application server, from either names.
The following urls provide me with "The Page Cannot Be Displayed" error message:
http://login.<company>.com.au:7777/
http://<nameofmachine>:7777/
The following urls provide me with "Page Under Construction" error message:
http://login.<company>.com.au/
http://<nameofmachine>/
Could someone please tell me why this is the case, considering I am using the installation procedures Oracle has published within the Oracle Http Server Admistrators Guide (http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14007/netconf.htm#sthref379).
Cheers
RodneyHi Rondey,
Ik think that I can see your probleem.
Just change the following line at your httpd.conf, then restart the component.
First of all if the port is installed with nr. 7777. then the listen process will be on port 7778
the second thing is just try to do the following steps
((Port 80 to Port 7777)))
Listen 7778
%%%% In loadbalancer section %%%%%%
just add the following lines
Listen 80
Listen 8103
Listen 8102
NameVirtualHost *
NameVirtualHost *:8103 or 80
If you want to use this ports (8103 or 8102) for other site (url), then
<VirtualHost *:80>
ServerName <machine ip> or (host name)
Hear from U,
Regards,
Hamdy -
Installing and Configuring Oracle stand alone grid Using Response Files
Hello ,
I am looking for some help if you have done the oracle restart (standalone grid) installation using response file , when i tried to install using response files it is not creating the ASM disks , so i might be missing some steps . Can you please share if you have done this installation of if you have a right document to do this .
Version i am using 11.2.0.3
OS : Linux
Thanks
VenkatUse the following in response file, replace oracle_base,oracle_home,oracle_hostname,diskgroup name,redundancy,disks as per your
environment
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_BASE=/u01/oracle
ORACLE_HOME=/u01/product/11.2.0/grid
INVENTORY_LOCATION=/oracle/install/oraInventory
ORACLE_HOSTNAME=rhel5
oracle.install.option=HA_CONFIG
SELECTED_LANGUAGES=en
UNIX_GROUP_NAME=dba
oracle.install.asm.diskGroup.name=DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.crs.config.autoConfigureClusterNodeVIP = false
oracle.install.asm.SYSASMPassword=test
oracle.install.asm.monitorPassword=test
oracle.install.asm.diskGroup.disks=/dev/oracleasm/disks/TEST01,/dev/oracleasm/disks/TEST02
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/*
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.asm.upgradeASM=false
oracle.install.crs.config.gpnp.scanPort=0
oracle.install.crs.config.clusterName=
oracle.install.crs.config.gpnp.configureGNS=true
oracle.install.crs.config.gpnp.gnsSubDomain=
oracle.install.crs.config.gpnp.gnsVIPAddress=
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
oracle.install.crs.config.clusterNodes=
oracle.install.crs.config.storageOption=
oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
oracle.install.crs.config.useIPMI=false
oracle.install.crs.config.ipmi.bmcUsername=
oracle.install.crs.config.ipmi.bmcPassword=
oracle.install.crs.config.privateInterconnects=
oracle.install.crs.config.gpnp.scanName=
oracle.install.crs.upgrade.clusterNodes= -
Help - Oracle SQL Plus manipulation using JAVA
Hi ,
I want to invoke SQL*Plus from my Java program as well want to write some queries in the same PROCess. I am able to invoke SQL Plus and login into SQL Plus, but i don't know how to proceed further and write queries etc in the same script. My code is as follows:
import java.util.*;
import java.io.*;
public class ExecuteSql
public static void main(String args[])
String[] RunCommand = {"plus33w" , "username/password@dbaseregion" };
try
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(RunCommand);
int exitVal = proc.waitFor();
System.out.println("Process exitValue: " + exitVal);
} catch (Throwable t)
t.printStackTrace();
}Hi Ashish,
This forum is for the Sun Java System Message Queue
product. It is a message server that is an implementation
of the Java Message Service (JMS).
It appears that your question has nothing to do with
Java Message Service or Sun Java System Message Queue.
You should probably check out the list of forums at:
http://developers.sun.com/forums/
to see which forum is best for your question.
regards,
-isa -
Using Java Access bridge (Accessibility) with oracle forms 6.0 client
I'm trying to use JAB (java Access bridge ) to capture events in oracle forms 6.0 client .
I've a Jinitiator 1.1.8 and JRE version 1.4x
I've configured JAB as per the installation guide . However the events don't surface in Java Monkey .
Has anybody encountered similar issue ? what is the solution for the issue ??
Also on one of the forums I read Jinitiator 1.3x and above is automatically recognised by Java Access bridge .
For jinitiator version less than 1.3 manual configuration is required . however I haven;'t been able to find any on the oracle forms KB
Also here is the excerpt from the link http://www.oracle.com/us/corporate/accessibility/faqs/index.html
Q: Are there special steps for using Java-based applications with assistive technology?
A: If the Oracle application is written in Java, such as JDeveloper or Oracle Forms (runtime), customers must first install the latest version of Sun's Java Access Bridge. The Java Access Bridge provides the integration with screen readers such as JAWS or SuperNova that support Java. You just download the Access Bridge and install it. Sun's AccessBridge 2.0x recognizes Oracle's JInitiator 1.3x and above so no manual configuration steps are necessary. The Access Bridge is available from: http://java.sun.com/products/accessbridge. At the time this document was written, Access Bridge 2.0.1 is the most current publicly available production release; Oracle recommends upgrading to this version. Sun's AccessBridge is bundled with Oracle Universal Installer (OUI) and can be found in the Java Runtime Engine (JRE). More information for configuring such products is in the respective product documentation, or on http://www.oracle.com/us/corporate/accessibility/products/index.html.
Edited by: 974810 on 4 Dec, 2012 1:10 AMODP.NET requires Oracle Client 9.2 or higher.
You can find additional information about ODP.NET from the FAQ:
http://www.oracle.com/technology/tech/windows/odpnet/faq.html
and the ODP.NET homepage:
http://www.oracle.com/technology/tech/windows/odpnet/index.html
Hope that helps,
Mark -
Unable to get 'InitialContext' using Java Client in Oracle App 10.0.2.0
Scenario & Problem Description: Unable to get 'Initial Context' using Simple Java Client in Oracle Application Server 10.0.2.0
I'm having an issue while I try to initialize the Initial Context for an EJB lookup from a simple Java Client [local lookup], but the same code snippet works fine when I try from Servlet. I have enclosed the Exception Stack Trace and the Code Snippet for your reference.
1. .NET Client ---> Servlet --> LookupUtility --> EJB --> DB - Issue
2. .NET Client ---> Servlet --> EJB --> DB - Works
Exception: java.lang.InstantiationException: Error communicating with server: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest); nested exception is: nested exception is: Exception in InitialContext: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for Config (guest) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(ApplicationClientInitialContextFactory.java:149)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at com.seagate.edcs.config.util.LookupUtility.getInitialContext(LookupUtility.java:123)
at com.seagate.edcs.config.util.LookupUtility.getConfiguration (LookupUtility.java:69)
at com.seagate.edcs.config.util.LookupUtility.main(LookupUtility.java:135)
Code Snippet:
* This method returns the Configuration for the properties set.
public ArrayList getConfiguration ( ) throws Exception {
ArrayList arrayList = null;
try {
Context context = getInitialContext();
System.out.println("Context : " + context);
Object home = context.lookup("java:comp/env/ejb/com.seagate.edcs.config.ejb.ConfigSessionEJBHome");
System.out.println("Object home : " + home);
ConfigSessionEJBHome configSessionEJBHome = (ConfigSessionEJBHome)PortableRemoteObject.narrow(home, ConfigSessionEJBHome.class);
System.out.println("ConfigSessionEJBHome configSessionEJBHome : " + configSessionEJBHome);
ConfigSessionEJB configSessionEJB =(ConfigSessionEJB)PortableRemoteObject.narrow(configSessionEJBHome.create(), ConfigSessionEJB.class);
System.out.println("ConfigSessionEJB configSessionEJB : " + configSessionEJB);
arrayList = configSessionEJB.getAllConfig();
System.out.println("Context : " + context);
} catch (Exception ex) {
System.out.println("Exception Occured");
throw ex;
return arrayList;
* Get an initial context from the JNDI tree.
private Context getInitialContext() throws NamingException {
try {
Hashtable hashtable = new Hashtable();
hashtable.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
hashtable.put("java.naming.provider.url", "ormi://seagate.mil-shivas-270.am.ad.seagate.com/home"); // if we won't specify the port, it considers the default port
hashtable.put("java.naming.security.principal","ias_admin");
hashtable.put("java.naming.security.credentials","ias123");
return new InitialContext(hashtable);
} catch (NamingException ne) {
System.out.println("Exception in InitialContext.");
throw ne;
Note:
1. The user "ias_admin" & password "ias123" are the credential provided for the 'Admin' while installing the Oracle App Server and using these credentials I'm able to bring the Admin Console. Also, added new user 'guest/guest' - assigned this user to the 'admin' group ...
2. Since its a local lookup, there is no need to specify the credentials, but at runtime a dialog box pops up prompting to enter the 'userid/password' and when I enter the crendtials, I get the exception as stated. [In case of Servlet - EJB lookup, I'm not specifying any credentials]
Are there are any configuration parameters which I need to provide in any of the .xml? Could you please let me know the fix for the same.
Regards,
Kafeel/-Please use the OS {forum:id=210}
-
How to get comparable Oracle JDBC performance using Java 1.4 vs 1.1.7?
Our application makes extensive use of JDBC to access an Oracle database. We wrote it a number of years ago using java 1.1.7 and we have been unable to move to new versions of java because of the performance degradation.
I traced the problem to JDBC calls. I can reproduce the problem using a simple program that simply connects to the database, executes a simple query and then reads the data. The same program running under java 1.4 is about 60% slower than under java 1.1.7. The query is about 80% slower and getting the data is about 150% slower!
The program is attached below. Note, I run the steps twice as the first time the times are much larger which I attribute to java doing some initializations. So the second set of values I think are more representative of the actual performance in our application where there are numerous accesses to the database. Specifically, I focus on step 4 which is the execute query command and step 5 which is the data retrieval step. The table being read has 4 columns with 170 tuples in it.
Here are the timings I get when I run this on a Sparc Ultra 5 running
SunOs 5.8 using an Oracle database running 8.1.7:
java 1.1.7 java 1.4
overall: 2.1s 3.5s
step 1: 30 200
step 2: 886 2009
step 3: 2 2
step 4: 9 17
step 5: 122 187
step 6: 1 1
step 1: 0 0
step 2: 203 161
step 3: 0 1
step 4: 8 15 <- 87% slower
step 5: 48 117 <- 143% slower
step 6: 1 2I find the same poor performance from java versions 1.2 and 1.3.
I tried using DataDirect's type 4 JDBC driver which gives a little better performance but overall it is still much slower than using java 1.1.7.
Why do the newer versions of java have such poor performance when using JDBC?
What can be done so that we can have performance similar to java 1.1.7
using java 1.4?
========================================================================
import java.util.*;
import java.io.*;
import java.sql.*;
public class test12 {
public static void main(String args[]) {
try {
long time1 = System.currentTimeMillis();
/* step 1 */ DriverManager.registerDriver(
new oracle.jdbc.driver.OracleDriver());
long time2 = System.currentTimeMillis();
/* step 2 */ Connection conn = DriverManager.getConnection (
"jdbc:oracle:thin:@dbserver1:1521:db1","user1","passwd1");
long time3 = System.currentTimeMillis();
/* step 3 */ Statement stmt = conn.createStatement();
long time4 = System.currentTimeMillis();
/* step 4 */ ResultSet rs = stmt.executeQuery("select * from table1");
long time5 = System.currentTimeMillis();
/* step 5 */ while( rs.next() ) {
int message_num = rs.getInt(1);
String message = rs.getString(2);
long time6 = System.currentTimeMillis();
/* step 6 */ rs.close(); stmt.close();
long time7 = System.currentTimeMillis();
System.out.println("step 1: " + (time2 - time1) );
System.out.println("step 2: " + (time3 - time2) );
System.out.println("step 3: " + (time4 - time3) );
System.out.println("step 4: " + (time5 - time4) );
System.out.println("step 5: " + (time6 - time5) );
System.out.println("step 6: " + (time7 - time6) );
System.out.flush();
} catch ( Exception e ) {
System.out.println( "got exception: " + e.getMessage() );
... repeat the same 6 steps again...
}If I run my sample program with the -server option, it
takes a lot longer (6.8s vs 3.5s).Which has to be expected, as the -server option optimizes for long running programs - so it shoudl go with my second suggestion, more below...
I am not certain what you mean by "just let the jvm
running". Our users issue a command (in Unix) which
invokes one of our java programs to access or update
data in a database. I think what you are suggesting
would require that I rewrite our application to have a
java program always running on the users workstation
and to also rewrite our
commands (over a hundred) to some how pass data and
receive data with this new server java program. That
does not seem a very reasonable just to move to a new
version of java. Or are you suggesting something
else?No I was just suggestion what you descript. But if this is not an option, then maybe you should merge your java-programs to C or another native language. Or you could try the IBM-JDK with the -faststart (or similar) option. If thew Unix you mention is AIX, then there would be the option of a resetable-vm. But I cannot say if this VM would solve your problem. Java is definitly not good for applications which only issue some unqiue commands because the hotspot-compiler can not be efficiently used there. You can only try to get 1.1.7 performance by experimenting with vm-parameters (execute java -X). -
Configure WebSphere Portal Server to use LDAP (Oracle Internet Directory)
I did configuration for WebSphere Portal to use security with LDAP Oracle Internet Directory (OID). The script for configuring works well (WPSConfig.bat action-secure-portal-ldap)
But when i start Portal Server it cannot start successfully. I did check in log file and found a error on SystemOut.log as attachment log below. I don't know what happen with WebSphere Portal Server.
If you guys know how to fix it please let me know or point me some documents to configure this again.
Thanks in advanced.
Servlet E com.ibm.wps.engine.Servlet init EJPFD0016E: Initialization of service failed.
com.ibm.wps.ac.DomainAdministratorNotFoundException: EJPSB0107E: Exception occurred while retrieving the identity of the domain adminuser/admingroup uid=wpsadmin,cn=Users,dc=localhost,dc=com.There is no clear documentation available to enable custom security but IBM info center has decent documentation for LDAP based security. I would say follow the steps mentioned for IBM directory and then modify the necessary configuration parameters for OID. This should solve your issues. For better help open a PMR with IBM to get necessary quick help.
-
How to configure Oracle 10g to use 4GB memory
I'm trying to configure Oracle 10g to use >4GB memory. Have configured server boot.ini with required flags (/3GB /PAE). Rebooted server then created standard database, then connected to db instance and changed oracle parameters DB_BLOCK_BUFFERS, USE_INDIRECT_DATA_BUFFERS as required. Restarted DB instance, DB fails to restarted with SGA memory error. According to oracle user docs the SGA is nolonger in effect due to previous settings. Can you provide example of SPFILE with parameters settings that do work and use >4GB memory. Current server has 8GB, 2 x Dual XEON core/processors (i.e. 8 processors)
The recommended /3GB switches in the boot.ini file can only be used with the following operating systems editions (KB article 291988):
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Data Center Server
Microsoft Windows Server 2003, Enterprise Edition
Microsoft Windows Server 2003, Data Center Edition
Microsoft Windows Small Business Server 2003
Important: Windows 2000 and 2003 Server Standard Editions DO NOT SUPPORT /3GB Switch.
So if your OS is listed above, then you cannot have a larger SGA. -
How to configure Oracle 10g Advanced Security to use SSL concurrently with
How to configure Oracle 10g Advanced Security to use SSL concurrently with database User names and passwords
In Oracle Advanced Security Documentation it is mentioned that i can use SSL concurrently with DB user names and passwords. But when i configure the client certificate on the client my DB connection is getting authenticated using the certificate, which out passing user id or password.
We want to connect to Oracle DB over SSL channel so that the data packets are not in clear text. Also we want the user to make a connection using user id and password.
Basically we want SSL with out authentication.
Need your expert adviceRead the documentation (I have given following links assuming you are running a 32 bit architecture)
Server installations:
http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Books%29
Client installations:
http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14312%2Ftoc.htm&remark=portal+%28Books%29
You can find the required books (if not using 32 bit architecture) from
http://www.oracle.com/pls/db102/portal.portal_db?selected=3 -
How To Store pdf or doc file in Oracle Database using Java Jdbc?
can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.
Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
for Adding PDF in DB i used image.jsp
Database table structure (table name. pictures )
Name Null? Type
ID NOT NULL NUMBER(11)
IMAGE BLOB
<%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
PreparedStatement ps,pstmt,psmnt;
ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
File file =
new File("D:/info.pdf");
FileInputStream fs = new FileInputStream(file);
ps.setInt(1,4);
ps.setBinaryStream(2,fs,fs.available());
int i = ps.executeUpdate();
if(i!=0){
out.println("<h2>PDF inserted successfully");
else{
out.println("<h2>Problem in image insertion");
catch(Exception e){
out.println("<h2>Failed Due To "+e);
%>
O/P: PDF inserted successfully
i tried to display that pdf using servlet. i am giving the code below.
import java.io.IOException;
import java.sql.*;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class DispPDF extends HttpServlet {
* The doGet method of the servlet. <br>
* This method is called when a form has its tag value method equals to get.
* @param request the request send by the client to the server
* @param response the response send by the server to the client
* @throws ServletException if an error occurred
* @throws IOException if an error occurred
public void service(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
//response.setContentType("text/html"); i commented. coz we cant use response two times.
//PrintWriter out = response.getWriter();
try{
InputStream sPdf;
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
PreparedStatement ps,pstmt,psmnt;
psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
ResultSet rs = psmnt.executeQuery();
if(rs.next()) {
byte[] bytearray = new byte[1048576];
//out.println(bytearray);
int size=0;
sPdf = rs.getBinaryStream(1);
response.reset();
response.setContentType("application/pdf");
while((size=sPdf.read(bytearray))!= -1 ){
//out.println(size);
response.getOutputStream().write(bytearray,0,size);
catch(Exception e){
System.out.println("Failed Due To "+e);
//out.println("<h2>Failed Due To "+e);
//out.close();
OP
PDF-1.4 %âãÏÓ 2 0 obj <>stream x+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2KüsSSS4C²ê Pkø$VãGÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
plz help me out.
Maybe you are looking for
-
When I try to play songs from itunes, I get an error message that my computer is not authorized. My songs have all played in the past. This is something new. I verified my computer is authorized, and when I try to re-enter the password, it tells m
-
Can't add pages to book in iPhoto.
I'm creating a book in iPhoto and want to add pages to a 33-page Book but it wont let me. I click the icon while on a page and while in an overview but nothing happens. Help! I'm using iPhoto '11, 9.4.2. Thanks!
-
Fld selectn for mvmt type 673 / acct 407300 differs for Business Area (033)
Hi All, I am implementing the Inetrcompany return process for the client. 1) I have created a intercompany Return PO (NB doc type) . 2) Created a delivery against this PO. 3) when i am posting goods issue for this Return delivery , i am getting this
-
Problem with Report Result Display.
Hi Experts, In one of my reports , i need one key figure length of service in years which is report execution date (system date ) - entry date / 365. Entry date is characteristic and it is in the report display. I have made a formula and in that i c
-
Export from 10.2.0.4 the inport to 10.2.0.1
I have a small database that I'm trying to bring from 10.2.0.4 into a 10.2.0.1 database. Is it possible to do this using the export and import commands? Is there anything special that I would have to do to make it work?