How can I get the SQL of a tablespace of the database
Hi allI'm using Oracle 11 g R2. I want to get some tablespaces on my database SQL code. in the same way, I get the DDL of the table using the GET_DDL function.
How can I get that?
Kind regards
Just use 'TABLESPACE' instead of 'TABLE' and a name of a tablespace instead of the name of a table and use dba_tablespaces or the user_tablespaces for a list of tablespaces.
It's a simple as that!
------------
Sybrand Bakker
Senior Oracle DBA
Tags: Database
Similar Questions
-
How can I get the maximum salary of the first ascending
Hello
How can I get the maximum salary of the first in ascending order.
I need the sql query.
want my output:
Emp_name salary
A 5000
SS 100
300 AA
DD 700
WW 2000
Thank you
Walid.Here is an example:
SQL> with mytable as 2 ( select 'aa' as col1, 300 col2 from dual union all 3 select 'ss' as col1, 100 col2 from dual union all 4 select 'a' as col1, 5000 col2 from dual union all 5 select 'dd' as col1, 700 col2 from dual union all 6 select 'ww' as col1, 2000 col2 from dual ) 7 select col1, col2 8 from mytable 9 order by decode(row_number() over (order by col2 desc),1,0,1),col2; CO COL2 -- ---------- a 5000 ss 100 aa 300 dd 700 ww 2000 SQL>
Nicolas.
-
How can I get the second and third highest salary from the emp table
How can I get the second and third highest salary from the emp table in the ecah DepartmentSQL> ed Wrote file afiedt.buf 1 select empno, ename, sal, deptno 2 from ( 3 select empno, ename, sal, deptno, dense_rank() over (partition by deptno order by sal desc) as rn 4 from emp 5 ) 6* where rn in (2,3) SQL> / EMPNO ENAME SAL DEPTNO ---------- ---------- ---------- ---------- 7782 CLARK 2450 10 7934 MILLER 1300 10 7566 JONES 2975 20 7876 ADAMS 1100 20 7499 ALLEN 1600 30 7844 TURNER 1500 30 6 rows selected. SQL>
-
How can I get the messages appear when sent even if my phone is locked. I only get messages across when I activate the phone
Settings > Notifications > Messages > display on the lock screen
-
How can I get the iMovie video files in the photo library?
How can I get the video files of "iMovie - bibliotek.imovielibrary" in the photo library?
Is to select your library from the libraries pane and choose my brackets at the top of the screen. Then select the clips you want and share file on the desktop. Then import in photos.
-
My update to Apple Watch has suspended how can I get the update?
My update to Apple Watch has suspended, how can I get the update?
What do you mean by "break"?
-
How can I get the AirPort Express 1 utility generation? I lost mine.
How can I get the AirPort Express, the utility of 1st generation? I lost mine.
Open the App Store on your device, then press Search at the bottom of the screen.
Then type: airport utility in the search field of the screen top.
-
How can I get the update iOS 9.3.5?
How can I get the update iOS 9.3.5?
Settings > general > software update
-
All my old tabs are missing after a crash. I chose "view my tabs, windows and last time ', like the start option. Many unwanted changes in tab management happened recently. For example when I close a tab in a window of the two tab, I see a blank screen (see picture). Preview display seems to be broken (see attachment). How can I get the old behaviour back?
After researching the issue, it seems that the problem was a problem of NoScript configuration. After restoring NoScript to the default values, the tab number disappeared.
Thanks for your help.
MELL-
(~ J99) Also note
mellpell said
Looks like it's a known problem with Image Tweek:
http://forums.mozillazine.org/viewtopic.php?p=14029673#p14029673
https://github.com/CAFxX/ImageTweak/issues/37
https://github.com/CAFxX/ImageTweak/issues/40 -
How can I get the message from thunderbird to stop coming when I opened my email?
How can I get the message from thunderbird to stop coming when I opened my email?
Press the alt key to make the call of menu bar
Select Tools-Options-general
Disabled the Start Page -
When I try to manually associate my watch it only gives me a 5 digit number, but not the number 6 to complete the pairing. How can I get the 6 digit number?
Hello
When pairing manually, you must press the name of 5 digits on the screen of your iPhone (when he shows the same device name that is shown on your watch, after typed it on your watch's 'i'):
Your watch then displays a six-digit code, you will then enter on your iPhone:
More information:
-
After a computer crash, I had to load Thunderbird (v31.3.0) in my computer running Windows 8.1, and I managed to import my address book backup file in Thunderbird (v31.3.0).
My problem is that I don't see an option to sort the address book by name of 'Family', which was available with the version of Thunderbird, I had before the crash.
How can I get the address book to sort by the name of "family"?"Address book".
Select address book
"View' > 'Show name as' > last/first". "You can sort by name.
Click on the 'Name' column header to change the sort order,
Reversed, then click on the 'Name' column header again to reverse the order.Or
'View' > ' sort by ' > select 'Name' and 'Crescent '. -
I am trying to sync my iphone to my computer via i-tunes soft ware. It does give me an option for the phone device. How can I get the phone icon in the menu bar?
Mac or Windows?
-
How can I get the tabs colorful to use different distinct colors for 2 gmail accounts?
Under Firefox 29.0.1 iMac OSX 10.9.3. I have multiple Google accounts: 2 1 Google Calendar and gmail accounts. Colorful tabs add-on will allow me to choose a color for a gmail account, but it also uses this same color for the other gmail account. How can I get the different colors on 2 gmail accounts?
In addition, colorful tabs is also the same for my homepage (google.com) and my google calendar. How can I get different colors on these 2?
Personally, I use 'Fabtabs' for my mozilla FireFox.
https://addons.Mozilla.org/en-us/Firefox/addon/FabTabs/
This add-on has problems like that when I use it.
-
See above
I reinstalled Firefox Desktop, I downloaded my favorites of Carbonite, how can I get the current Firefox to accept?
You do backup your bookmark as a .json file?
Restoration of bookmark
-
When you press the new tab, how can I get the homepage instead of the history of tiles?
When you press the new tab, how can I get the homepage instead of the history of tiles?
You can try this.
Instead of the parameter mentioned pref in about: blank, you can enter any site of your choice.
Maybe you are looking for
-
HP Pavilion dv1000 blocked BIOS of forgotten password
Help,... to set a password for boot and now forgotten, attached 1000s but constantly zero. 15819 disabled system message
-
C6280: Select Auto duplex printing
Hello:I use an HP running Windows Vista 32 bit Home Premium laptop.I had already completely uninstalled my HP Photosmart C6280 all-in-one printer.Today, I reinstalled it using the CD-ROM supplied with the printer.When I went to print a MS Word docume
-
always use MSN games - not to come play today
Everything works on my PC except for MSN Games. When I select "games" the info arrives, however when I select a game to play - nothing happens. Help, please.
-
My cooling fan runs constantly, what can I do?
My fan will not stop running at a fairly high rate of speed, tried to update driver nothing works.
-
How to use the font family in WebWork.
Hi all I want to use different font family in webwork. Please send any suggestions. ------------------------------- Tom Sandra