Wednesday, April 27, 2011

Copying Symlinks in directories with actual ones !

[root@Linux sriram]# cp jdk6/ /home/sriram -rf -L


This will copy the actual files under jdk6 folder of  the softlinks.

i.e : soft links will be gone and actual files will be present.



Tuesday, April 26, 2011

How to find your Oracle SID

To find what your Oracle System ID is :

SQL> show parameter db_name;

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
db_name                  string     host91906
SQL>


on Oracle XE db usually by default SID is XE , as below

SQL> show parameter db_name;

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
db_name                  string     XE
SQL>






Some default passwords Oracle DB !!


These are default passwords, you can use to login on a newly installed
Oracle DB !!

SQL> connect system as sysdba;
Enter password: manager
Connected.



SQL> connect sys as sysdba;
Enter password: change_on_install
Connected.

SQL> connect orcladmin as sysdba;
Enter password: welcome
Connected.
SQL>


Name Password
sys change_on_install
system manager
orcladmin welcome

Thursday, April 7, 2011

on VNC connection opening GUI screen fails ...

Loaded component definition: enterprise
Xlib: connection to ":1.0" refused by server
Xlib: No protocol specified

Exception in thread "Main Thread" java.lang.InternalError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable.


All i did was :


1) killed that vnc session:(vncserver -kill :1)
2) started a new session (vncserver)
3) su <user>
4) xhost + 
[root@host1 ~]# xhost +
access control disabled, clients can connect from any  host



Thats it! then I was able to load the GUI interface on VNC.