Friday, April 20, 2007

TNS Ping & SQLPLUS

tnsping is a utility to test your various oracle connections in tnsnames.ora.

it comes with your oracle.

Run the following tests once u install Oracle:

1)Start --> Run --> cmd

2) at the command prompt type in

tnsping

ex: if your tns entry is :

SRGTDEV =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = cmc8asff2.ny.jpmorgan.com)(PORT = 10005))
)
(CONNECT_DATA =
(SERVICE_NAME = APPRDEV)
)
)

type in :

tnsping SRGTDEV

YOU SHUD SEE THE FOLLOWING SCREEN




ALSO YOU CAN TYPE IN sqlplus at the command prompt to make sure ur oracle is properly installed. In that case you will see the following:

Saturday, April 14, 2007

JDK and JRE Big lesson learnt

JDK: Java Development tool kit also includes JRE (Java Runtime Environment)

JRE: Java Runtime Environment need not be installed separately. I comes along with JDK. Just make sure if its installed properly

Also biggest mistake made today:

JDK and JRE are of separate versions.And code compiled with a different version of JDK cannot be run on separate version of JRE.

So Ant is showing the following error

class file has wrong version 49.0, should be 48.0

To read more abt this goto: http://forum.java.sun.com/thread.jspa?threadID=517933&tstart=0


Resolution: What I did is uninstall both JDK and JRE and reinstall the same verison from http://java.sun.com/javase/downloads/index_jdk5.jsp

Everything went well and my Build is successful.

Setting Class Path Variables in Windows



Setting Class Path variables in windows:

Rt click on My Computer

2) Advanced

3) Environment Variables

4) New

5) JAVA_HOME

6) C:\j2sdk1.4.2_08.

Also see the attachments:

Strting WebLogic From Eclipse My experience


After you start your weblogic from outside for the first time.. and custom set up of weblogic Admin user Id and Password,Here is the steps to proceed further:

1)Open my eclipse

2)Window-->Preferences -->My Eclipse --> Application Server -->Weblogic 8

3) open + on weblogic 8.

4) Open JDK and set up the path as follows: C:\bea\jdk142_08

5) This will import a set of jdk files needed for starting the server including JRE

6) Now go to Weblogic tab and enter the following:


BEA Home Directory: C:\BEA

Choose enable weblogic Radio button on the top of this panel.

and enter the following:

Weblogic Installation Directory: C:\bea\weblogic81

Admin userName: weblogic (PS: ITs the uid and pwd u set up while starting ur server)

Admin password: weblogic (PS: ITs the uid and pwd u set up while starting ur server)

Execution Domain Root: C:\bea\weblogic81\server\bin

Execution Domain Name: mydomain

Execution Server Name: myserver

Host:portNumber: localhost:7001

Thats it its that easy you are all set to start weblogic server from your Eclipse.





Enjoy,
Suneetha.

Installing and Starting Weblogic Server

After default installing the weblogic server in the folder c:\bea

You can start your server from the following:

C:\bea\weblogic81\server\bin

In the bin folder click on the following: startWLS.cmd

And will ask you for the user id and pwd.

Since this is the first time setup, just give any user id and password. But remember it for future use

Then after running a couple of checks it will ask you if you want to install a custom build for this startup. (Something like that with a question Y/N).

Type in Y

Now will prompt u to re-enter your password

re-enter your pwd

Thats it ur set up is complet and now you have your Weblogic server running.

To confirm GOTO:

http://localhost:7001/console

Will prompt you for a user id and pwd just enter the one that u used for your set up. And you are all set.. console is open for use. =)

YEPPEEEEE

Thursday, April 12, 2007

Installing Eclipse

Installing Eclipse:

Goto eclipse.org and get the latest version of eclipse.

Download it to a folder.

Extract the zip file to a separate folder. Now you will see the eclipse icon in the extracted folder.

Double click on the icon.. your eclipse is ready to use.

You dont have to install eclipse separately.Just double clicking on the icon is enough.

You will get an error if you dont have JVM installed.


Before using eclipse make sure you have java virtual machine (JVM) installed on ur machine.

Wednesday, April 11, 2007

starting weblogic from eclipse

--------------------------------------------------------------------------------

Navigate to 'Preferences' from the 'Window' menu
Select the 'WebLogic' node and set the following parameters
Version of WebLogic Server
BEA Home Directory
WebLogic Home Directory
Domain Name
Domain Directory
Server Name
User Name (the name of a user with privileges to boot this server)
Password
Hostname (the hostname used by weblogic.Admin)
Port (the port number used by weblogic.Admin)
Select the 'WebLogic->Classpath' node and set the following parameters
Classpath before the WebLogic libraries
Classpath after the WebLogic libraries
Select the 'WebLogic->Project' node and set the following parameter
Project added to the end of the classpath
Select the 'WebLogic->JavaVM Options' node and set the following parameters
JavaVM (JDK used to launch WebLogic Server)
JavaVM Options (arguments to pass the JavaVM)
JNI library path (paths to search when loading libraries)

Starting WebLogic Server

--------------------------------------------------------------------------------

Navigate to 'Start WebLogic Server...' from the 'Run' menu
or Click the 'Start WebLogic Server...' button
Stopping WebLogic Server

--------------------------------------------------------------------------------

Navigate to 'Stop WebLogic Server...' from the 'Run' menu
or Click the 'Stop WebLogic Server...' button