Linux Display variable
export DISPLAY=`who -m | awk ‘{print $6}’ | sed -e ’s/(//g’ -e ’s/)//g’`:0
export DISPLAY=`who -m | awk ‘{print $6}’ | sed -e ’s/(//g’ -e ’s/)//g’`:0
http://littlebrain.org/2008/05/12/how-to-install-oracle-xe-in-ubuntu-64-bit/
http://forums.oracle.com/forums/thread.jspa?threadID=848385&tstart=45
This is nothing to worry about – update-rc.d: warning: /etc/init.d/oracle-xe missing LSB style header
After it’s been installed, configure it:
sudo /etc/init.d/oracle-xe configure
Configure stuff, I used all defaults I believe.
Next in order to run sqlplus to do anything you need to source the config file:
source /usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh
Which in turn gave me this error:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/nls_lang.sh: 114: [[: not found
Which is entirely related to what shell that it is trying to run on. In the file definition you’ll find #! /bin/sh and if you change this to #! /bin/bash it will run properly. Fixed!
Now doing a – ‘which sqlplus’ should return a path to sqlplus like this:
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/sqlplus
SQLPLUS /NOLOG
CONNECT username/password
All of this so I can ‘Enable Remote HTTP Connection with SQL Command Line’
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
Now I have to reconfigure port forwarding on my router at home in order to remotely access the Oracle Admin Website and router.
To access the Oracle Admin Site remote I should be able to go to:
http://host:port/apex
Where host = my domain name or IP and port = the default 8080 port I setup
I need to port forward 8080 requests to the server but I can’t remotely change my router yet.
I currently have it forwarding port 80 to the server but in order to change the router remotely I’m supposed to access myip:80
So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin
2 dbms_xdb.sethttpport(‘80′);
3 dbms_xdb.setftpport(‘2100′);
4 end;
5 /
CONNECT username/password
All of this so I can ‘Enable Remote HTTP Connection with SQL Command Line’ EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);Now I have to reconfigure port forwarding on my router at home in order to remotely access the Oracle Admin Website and router.To access the Oracle Admin Site remote I should be able to go to:http://host:port/apexWhere host = my domain name or IP and port = the default 8080 port I setupI need to port forward 8080 requests to the server but I can’t remotely change my router yet.I currently have it forwarding port 80 to the server but in order to change the router remotely I’m supposed to access myip:80So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin 2 dbms_xdb.sethttpport(‘80′); 3 dbms_xdb.setftpport(‘2100′); 4 end; 5 /
So one of those two needs to change.
Change HTTP or FTP port via SQLPLUS
SQL> begin
2 dbms_xdb.sethttpport(‘80′);
3 dbms_xdb.setftpport(‘2100′);
4 end;
5 /
sqlplus -S username/pw@sid @sqlfile.sql outputfile.txt args
I love how on the internet today, I can start off reading about the top 5 text editors from Lifehacker, and somehow end up looking at some Web Design girl’s twitter feed which links to her site which links to her blog which goes to the youtube video below.
1) http://www.thefuntheory.com/ – With this terrific video that makes me laugh at human kind – http://www.youtube.com/watch?v=2lXh2n0aPyw&feature=player_embedded#
2) A text editor with an extremely basic but cool site – http://cream.sourceforge.net/ . The site layout is so simple but… I love it.
Typically, a CIO is involved with analyzing and reworking existing business processes, with identifying and developing the capability to use new tools, with reshaping the enterprise’s physical infrastructure and network access, and with identifying and exploiting the enterprise’s knowledge resources. Many CIOs head the enterprise’s efforts to integrate the Internet into both its long-term strategy and its immediate business plans. The CIO is evolving into a role where he/she is creating and monitoring business value from IT assets.
In general, the CTO is concerned with the architecture, design & development, security, operational integrity, system support and maintenance across the IT organization. The CTO is responsible for delivering IT solutions with a focus on technical problem solving. In contrast, the CIO is focused on the IT strategy formulation, planning and strategic alignment of IT with the corporate objectives. The CIO ensures that return on IT investments are realized as planned.
I decided I needed a new wallpaper, and I just didn’t have time to find and use one of my own pictures.
I’m not sure what I’d do without Lifehacker stories…
http://lifehacker.biz/articles/best-wallpaper-websites/
Found this:
Over at www.interfacelift.com
![]()
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=198
Step 1:
Oracle Certified Associate -
Summary from the class needed to pass this test –
Oracle 11g Introduction to SQL
Step 2: To be continued…
$cat food 2>&1 >filecat: can't open food $cat food >file 2>&1$
Although lots of sh manual pages don’t mention this, the shell reads arguments from left to right.
2>&1 first. That means “make the standard error (file descriptor 2) go to the same place as the standard output (fd1) is going.” There’s no effect because both fd2 and fd1 are already going to the terminal. Then>file redirects fd1 (stdout) to file. But fd2 (stderr) is still going to the terminal.>file first and redirects stdout to file. Next 2>&1 sends fd2 (stderr) to the same place fd1 is going - that’s to the file. And that’s what you want.