Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 21st, 2004, 09:33 AM
soap soap is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 141 soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 46 m 33 sec
Reputation Power: 7
pointer

How do I assign something to a pointer or a reference in Oracle? Thanks.

Reply With Quote
  #2  
Old July 21st, 2004, 09:37 AM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
"IS REF" like 'IS REF CURSOR"

That isn't much help - show us what you're trying to do.

Reply With Quote
  #3  
Old July 21st, 2004, 10:17 AM
soap soap is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 141 soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level)soap User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 46 m 33 sec
Reputation Power: 7
I have a long piece of script (I think it is PL/SQL). In the script, the tablespace name is everywhere. When I want to change the tablespace name, I have to change every place. Because of that, I was thinking when creating the tablespace name, I should assign the name to an reference so that I only need to change the name at one place when I need to. For example,

CREATE TABLESPACE TS ...

CREATE TABLE TS.FOO(...) TABLESPACE TS;

Can I assign TS to a reference?

Thanks.

Reply With Quote
  #4  
Old July 21st, 2004, 12:22 PM
jim mcnamara jim mcnamara is offline
......@.........
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jun 2004
Posts: 1,307 jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level)jim mcnamara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 4 h 28 m 57 sec
Reputation Power: 48
Short answer: no

Assuming it is a SQL script (you can't do DDL in PL/SQL easily), creating tables and tablespaces on the fly:
doing DDL is generally not a great idea. If this script runs once a month, no problem.

DDL is a command like
CREATE
DROP
ALTER

Edit:
You can do SQL in PL/SQL as dynamic SQL. Create a string like:
Code:
'SELECT EMPNO FROM EMP;'  

and then execute the SQL statement. DDL does not work in PL/SQL dynamic statements. This is the only shortcut I know.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > pointer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway