Using Oracle 10G for the first time in ubuntu
IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1 • Share •
Using Oracle 10G for the first time in ubuntu
I assume you have installed oracle 10G using the tutorial from here
This instruction can be used for all versions of Oracle such as lite, XE or full:)
now, you can login as sys, or sysdba, but you won't be able to do the database related tasks. It is because the example databases are under the user HR which is locked.
But fear not, this tutorial is going to show you the way about how to enable the HR user and then use it.
Enabling the HR user:
Execute the following commands after you start "Run SQL command line" from oracle menu from applications.
It will ask for password, enter iit123
To be sure that you are really sys, enter this command:
if the output is
now execute the following commands:
Now, HR is unlocked and you are out of sqlplus window. Open a terminal, you can now login as HR using this command:
it will ask for your password, enter iit123
Now, you can do all the commands mentioned in book.
How about starting with:
Enjoy!
NOTE:
I have checked and double checked the instructions myself. I went to the
trouble of uninstalling Squirrel and then reinstalling it again so that
i can take the screenshots in each steps. If it does not work for you,
there is probably something wrong. And remember, starting database is a
lengthy process. Wait at least 2 minutes before you panic and start
shouting "HELP! it is not working!! I can't connect!!" .
Go to http://127.0.0.1:8080/apex and see if your page loads. If it does
not load, It means your oracle database is still being opened, mounted,
instantiated etc etc. Still if you can't connect.. you probably did
something wrong. Post the details under this topic, and we will see what
we can do for you.
This instruction can be used for all versions of Oracle such as lite, XE or full:)
now, you can login as sys, or sysdba, but you won't be able to do the database related tasks. It is because the example databases are under the user HR which is locked.
But fear not, this tutorial is going to show you the way about how to enable the HR user and then use it.

Enabling the HR user:
Execute the following commands after you start "Run SQL command line" from oracle menu from applications.
- Code:
conn sys as sysdba;
It will ask for password, enter iit123
To be sure that you are really sys, enter this command:
- Code:
show user;
if the output is
you are really sys now.
user is "SYS"
now execute the following commands:
- Code:
alter user HR account unlock ;
alter user HR identified by iit123;
exit
Now, HR is unlocked and you are out of sqlplus window. Open a terminal, you can now login as HR using this command:
- Code:
sqlplus HR
it will ask for your password, enter iit123
Now, you can do all the commands mentioned in book.
How about starting with:
- Code:
select * from employees;
Enjoy!NOTE:
I have checked and double checked the instructions myself. I went to the
trouble of uninstalling Squirrel and then reinstalling it again so that
i can take the screenshots in each steps. If it does not work for you,
there is probably something wrong. And remember, starting database is a
lengthy process. Wait at least 2 minutes before you panic and start
shouting "HELP! it is not working!! I can't connect!!" .
Go to http://127.0.0.1:8080/apex and see if your page loads. If it does
not load, It means your oracle database is still being opened, mounted,
instantiated etc etc. Still if you can't connect.. you probably did
something wrong. Post the details under this topic, and we will see what
we can do for you.
Last edited by BIT0122-Amit on Sat Aug 07, 2010 9:10 pm; edited 1 time in total
_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.
|About me|My Blog|

BIT0122-Amit- Founder

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

Re: Using Oracle 10G for the first time in ubuntu
Thanks a lot..
_________________________________________________________________
Code Explosion Blog | Code Explosion Wiki | The Rokonoid | নির্ঝরিণী

BIT0112-Rokon- Programmer

- Course(s):
- BIT
Blood Group: O+
Posts: 673
Points: 1269

Re: Using Oracle 10G for the first time in ubuntu
vote koi :/
_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.
|About me|My Blog|

BIT0122-Amit- Founder

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

Re: Using Oracle 10G for the first time in ubuntu
eije vote +++
_________________________________________________________________
Buddhong shoronogocchami..
dhommong shoronogocchami..
shonghong shoronogocchami..
Jogoter sokol prani.. shukhi hok.

BIT0104-ANIK- Administrator

- Course(s):
- BIT
Blood Group: O+
Posts: 423
Points: 699

Re: Using Oracle 10G for the first time in ubuntu
thanku thanku_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.
|About me|My Blog|

BIT0122-Amit- Founder

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

Re: Using Oracle 10G for the first time in ubuntu
Thanks for the nice instructions! 
rep++
Oops..its not here
Just forgot that, voting has been removed
missing that
By the way, I faced problem 1st time due to "starting database is a
lengthy process."
But now its working properly.

rep++
Oops..its not here
Just forgot that, voting has been removed
missing that
By the way, I faced problem 1st time due to "starting database is a
lengthy process."
But now its working properly.
_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়

BIT0129-Tabassum- Global Moderator

- Course(s):
- BIT
Blood Group: A+
Posts: 1496
Points: 2297

Re: Using Oracle 10G for the first time in ubuntu
That's really weird
three people said rep++, and only 2 in the counter 
Asif, you didn't think that just saying
will do the clicking( on + ) for you, right? 
three people said rep++, and only 2 in the counter 
Asif, you didn't think that just saying
will do the clicking( on + ) for you, right? _________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.
|About me|My Blog|

BIT0122-Amit- Founder

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

Re: Using Oracle 10G for the first time in ubuntu
May be Asif has given the vote. But I couldn't
Now I am giving your vote

Thanks for the nice instructions! Very Happy
rep++
Oops..its not here No
Just forgot that, voting has been removed Mad
missing that Sad
Now I am giving your vote


_________________________________________________________________
মানুষ তার স্বপ্নের সমান বড়

BIT0129-Tabassum- Global Moderator

- Course(s):
- BIT
Blood Group: A+
Posts: 1496
Points: 2297

Re: Using Oracle 10G for the first time in ubuntu
A sorry goes to Asif then
_________________________________________________________________
Adminship / Moderatorship is not about power, it is about Responsibility.
|About me|My Blog|

BIT0122-Amit- Founder

- Course(s):
- BIT
Blood Group: O+
Posts: 4187
Points: 6601

IITDU Forum :: TechTalks :: Ubuntu
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Active Topics!

» Understanding Timestamp Based Protocol
» Hi from Newbie
» Compare an image from a list of images in the sql database....tell which image is matching
» Sending email without email ID
» teach yourself c by herbert schildt pdf
» .NET MVC3: Unable to find the requested .Net Framework Data Provider. It may not be installed.
» SAD Slides: 4.1, 4.2
» QA topic Presentation - Urgent Notice