Thursday, July 21, 2011

Starting Tomcat Server through Command Prompt

Most of Us start the Tomcat Server either
  • By double clicking tomcat_home\bin\  tomcatX.exe
  • By using Services in Service Manager
  • By using the short cut in System-tray(area where u see time)
But SomeTimes due to virus,TomcatX.exe may not be present in bin folder or may not be working
Reason may be anything,But Problem is You are unable to start the tomcat server.

So One more way is there,which Some people Knows,But Few People Shares

Open Dos and navigate to the bin folder of Tomcat and type the following
c:\Tomcat 6.0\bin>java -jar bootstrap.jar

It will start the tomcat.Notice that in your bin folder we have bootstrap.jar which is not a normal jar file.Its Executable jar file.
When you say >java -jar bootstrap.jar,    org.apache.catalina.startup.Bootstrap  class gets Executed.
and you get the Tomcat Console


 




Sunday, July 17, 2011

Opening Facebooks,Orkuts in Offices

Practically i have seen,Software companies generally dont allow users to open facebook,orkut. in offices.
There is a very simple trick to cheat them.

instead of typing http://www.facebook.com/
type https://www.facebook.com/
 and so on.

The entire magic is on HTTPS. I have used it and it worked.Hope it will be same for All
Cheers

Monday, July 4, 2011

Oracle Architecture

Oracle is a database s/w.
It can be divided into multiple partition.
Each partition will be identified by one global database.
By default when you install oracle,we have only 1 partition,which is identified by one global database.
ORCL for oracle enterprise edition(changable)
XE for oracle express Edition.

Each Db may contain many user,
and each user may contain multiple tables
and each table may contain multiple rows and columns

Thats the story of Oracle Architecture


Saturday, July 2, 2011

Breaking into Oracle

Resetting system password in oracle
***********************************

If you have forgotten system password in oracle,you can do the following to reset it.

1>  start->run-> type  Sqlplus


2> Enter user-name: conn /as sysdba
   Enter password:     

Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options

3>  SQL> alter user system identified by samsung;
    User altered.



You have successfully changed the system password to samsung.
samsung is the new password.and you need not worry about previous password