I am new to Oracle, I have two tablespaces one for dev and one for live.
Is there a way that I can have a variable on a Package header that contains a tablespace name, which can then be used from within the procedures defined in the package header?
I need to do this as I have one tableSpace (TableSpaceA) that needs to query tables in TableSpaceB via procedures. The Dev TableSpaceB has a different table space name to live therefore I was hoping I could declare in the Package header a variable like
Tablespace temp = "TableSpaceName"
Then
Select * from temp.TableName
And finally change "TableSpaceName" when i roll my changes out to the live environment?