Unix Technical Forum

Noob Oracle Question

This is a discussion on Noob Oracle Question within the Oracle Miscellaneous forums, part of the Oracle Database category; --> I'm usually developing with SQL Server, but our organisation is in the process of implementing an ERP system that ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 11:08 AM
CJM
 
Posts: n/a
Default Noob Oracle Question

I'm usually developing with SQL Server, but our organisation is in the
process of implementing an ERP system that is Oracle-based (10g).

I'm required to write a small bolt-on application (web based), so I was
intending to create a separate 'database', where I could store my
application's stored procedures/views/etc, so that it would be independant
from our ERP system.

I have access to the web-based Enterprise Manager and Oracle SQL Developer,
though I'm sure I could gain access to or install other tools as required.

My first mission, I guess, is to find out a bit about the fundamentals or
Oracle. I understand Oracle doesnt have DB as such but has Schemas, but
which are a slightly different concept. So I'd like to get my head around
some of these fundamental concepts.

Secondly (and more practically), I need to know how to create my separate
'database', and how I can refer to tables & views in the ERP system. In SQL
this is fairly easy to do - if my application wants to manipulate a table in
a different DB I simply use the following type of reference: Select * from
OtherDB.dbo.Table1. I assume there is an Oracle equivalent.

Can anyone point me firstly in the direction of some good informations sites
to tutorial sites where I can find out more? Can anyone give me a simple
summary of what I need to do to create this separate 'database' and how I
get it to interact but its ERP peer DB.

I realise that Oracle is significant technology that won't be mastered in a
day, but I need to start somewhere.

Thanks in advance


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 11:08 AM
bernard (bernard_at_bosvark.com)
 
Posts: n/a
Default Re: Noob Oracle Question



CJM wrote:
> Can anyone point me firstly in the direction of some good informations sites
> to tutorial sites where I can find out more?


> I realise that Oracle is significant technology that won't be mastered in a
> day, but I need to start somewhere.
>


Best place to start is with
http://www.oracle.com/pls/db102/homepage?remark=tahiti
and start with the documentation on "Getting Started". This will truly
give you all the information you require

> I'm required to write a small bolt-on application (web based), so I was
> intending to create a separate 'database', where I could store my
> application's stored procedures/views/etc, so that it would be independant
> from our ERP system.


After reading the "Getting Started" docs I would suggest you store your
application stored procedures/views/etc in a different schema in the
SAME database as the ERP system (if the vendor will allow it). This
will improve performance and is easier to design and make secure. You
should however have a test and development environment FAR away from
the production environment. It is normally quite easy to create a copy
of a database for these purposes. Again this is all in the "Getting
Started" section of the documentation.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 11:09 AM
sybrandb
 
Posts: n/a
Default Re: Noob Oracle Question


CJM wrote:
> I'm usually developing with SQL Server, but our organisation is in the
> process of implementing an ERP system that is Oracle-based (10g).
>
> I'm required to write a small bolt-on application (web based), so I was
> intending to create a separate 'database', where I could store my
> application's stored procedures/views/etc, so that it would be independant
> from our ERP system.
>
> I have access to the web-based Enterprise Manager and Oracle SQL Developer,
> though I'm sure I could gain access to or install other tools as required.
>
> My first mission, I guess, is to find out a bit about the fundamentals or
> Oracle. I understand Oracle doesnt have DB as such but has Schemas, but
> which are a slightly different concept. So I'd like to get my head around
> some of these fundamental concepts.
>
> Secondly (and more practically), I need to know how to create my separate
> 'database', and how I can refer to tables & views in the ERP system. In SQL
> this is fairly easy to do - if my application wants to manipulate a table in
> a different DB I simply use the following type of reference: Select * from
> OtherDB.dbo.Table1. I assume there is an Oracle equivalent.
>
> Can anyone point me firstly in the direction of some good informations sites
> to tutorial sites where I can find out more? Can anyone give me a simple
> summary of what I need to do to create this separate 'database' and how I
> get it to interact but its ERP peer DB.
>
> I realise that Oracle is significant technology that won't be mastered in a
> day, but I need to start somewhere.
>
> Thanks in advance



Doc homepage is at

http://www.oracle.com/pls/db102/homepage?remark=tahiti

You'll need a (free and instant) OTN account to read it.
Note the 'Getting started' manual located on the first page.
The Concepts manual is also a mandatory read.

--
Sybrand Bakker
Senior Oracle DBA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 11:09 AM
CJM
 
Posts: n/a
Default Re: Noob Oracle Question

Thanks Guys... I already have an OTN account so I'll jump right in.

Bernard, yes, I was planning on a separate schema within the same database -
I just wasn't sure of the terminology! lol. And I'm working on the
development version of the test system, on the failover cluster. The live
system is but a speck on the horizon!

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 11:09 AM
dbsrvc
 
Posts: n/a
Default Re: Noob Oracle Question

Hi,
I also used fox database, ACCESS, SQL Server, and Oracle for more than
7 years.
In fact , they are similar in some way (RDBMS). Oracle is more
powerful.
for example:

Select * from DB_Link.username.Table1;

CJM 寫道:

> I'm usually developing with SQL Server, but our organisation is in the
>>

> Secondly (and more practically), I need to know how to create my separate
> 'database', and how I can refer to tables & views in the ERP system. In SQL
> this is fairly easy to do - if my application wants to manipulate a tablein
> a different DB I simply use the following type of reference: Select * from
> OtherDB.dbo.Table1. I assume there is an Oracle equivalent.
>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 11:09 AM
DA Morgan
 
Posts: n/a
Default Re: Noob Oracle Question

dbsrvc wrote:

> Select * from DB_Link.username.Table1;


Rather than
SELECT * FROM username.table@db_link?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-08-2008, 11:09 AM
CJM
 
Posts: n/a
Default Re: Noob Oracle Question

I've create a new Data File (SNEData), and a new User (SNE), which in turn
creates the Schema. [I did this in OEM]

There is another Schema called IFSAPP within the IFSP database. How do I
structure a simple SQL statement in SNE that queries IFSAPP [via SQL
Developer]?

Eg.

Select * from IFSAPP.MyTable;

I'm getting a 'SQL command not properly ended' error...

Do I need to create a Database Link; I assume I dont since the two Schema
are within the same DB.

Any ideas?

Thanks


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-08-2008, 11:09 AM
CJM
 
Posts: n/a
Default Re: Noob Oracle Question

Problem solved.

I gave the user SELECT ANY TABLE privileges and the used the following
command:

Select * from IFSAPP.MyTable;


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-08-2008, 11:10 AM
DA Morgan
 
Posts: n/a
Default Re: Noob Oracle Question

CJM wrote:
> Problem solved.
>
> I gave the user SELECT ANY TABLE privileges and the used the following
> command:
>
> Select * from IFSAPP.MyTable;


You solved a problem by gutting security? Why? Does your employer
understand the implications of what you did? Do you?
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-08-2008, 11:10 AM
CJM
 
Posts: n/a
Default Re: Noob Oracle Question


"DA Morgan" <damorgan@psoug.org> wrote in message
news:1155848818.606543@bubbleator.drizzle.com...
> CJM wrote:
>> Problem solved.
>>
>> I gave the user SELECT ANY TABLE privileges and the used the following
>> command:
>>
>> Select * from IFSAPP.MyTable;

>
> You solved a problem by gutting security? Why? Does your employer
> understand the implications of what you did? Do you?
>


I solved the problem. I may or may not have created another potential
problem.

If my employer understood the implications of anything, I wouldn't be
attempting this at short notice with no preparation or training.

Do I? Of course not. Surely if I did understand the implications (and they
were negative) then I wouldnt have done it. That much *must* be obvious.

Rather than demonstrating how pompous you can be, why dont you start again
from the beginning. Your post may go something like this:

'Chris, I can see that you have got past your problem, but I dont think your
solution is ideal because of A, B & C. A better way to do it would be this
way...because it avoids the disadvantages A, B & C and has the advantages of
D, E & F.'

To why I would reply 'Oh, I see. Thanks. That makes sense.'

It's pretty easy. Why don't you try it?

Chris


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com