Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL Query To Check Total Free Space In Database

2841601Jan 18 2015 — edited Jan 19 2015

Hello. I am trying to find a SQL query that will show me the total amount of free space that I have left within my database. I am database/system administrator, and when I receive requests to create a new table space, I would like to be able to check how much space I have left within my database through SQL developer, instead of having to check each Oracle database manually by remoting into the server and checking the free space on the hard drive. Thank you for your assistance.

Comments

Scott Wesley

Prefix your identifiers with colon, ie

:EMPLOYEE_ID

to_date(:TASK_DATE)

Create a transformation rule in Data Loading ...

Balaji Madhavan

Hai Scott,

Thanks for your quick response!

I have one more doubt in Transformation Rule,

pastedImage_0.png

why cant i return boolean and display my error message when it return False condition ?

Thanks in advance

Regards

Balaji Madhavan

Scott Wesley

I'm not sure that's the place for such an action. Transformation rules are just there to massage data.

If you want a record to fail because a value is incorrect, I think that's where you have a lookup definition with 'insert new value' as No.

Balaji Madhavan

how can i validate the data in the lookup definition using a PLSQL code ??

Scott Wesley

Would you need pl/sql? A lookup against a table not complex enough for your needs?

Maybe this sort of process needs to happen outside the declarative data loading process?

Balaji Madhavan

Okay Scott,

Let me explain my requirement, I have a spreadsheet file with data in it and all i need is to perform a validation before inserting it into table. I am inserting the data through data load wizard process, how can i validate and restrict the wrong data.

Please guidee me .

Scott Wesley

That's the purpose of a 'table lookup'. If you define one against a column, and the lookup table is the list of valid values, you can have the record rejected if 'insert new value' is No, and the value doesn't match.

This will work well for values with small number of values, but I'm not sure if you can make it conditional to other data in the row.

Balaji Madhavan

Yes, Scott, you're right, I have created a Lookup validation to validate a particular column if it has values matching in the Master table ie, lookup table, I have done that

pastedImage_0.png

Now i need to validate the Task_hours column according to my condition and restrict the failed records, how can i do that ??

Mike Kutz

Balaji Madhavan wrote:

Okay Scott,

Let me explain my requirement, I have a spreadsheet file with data in it and all i need is to perform a validation before inserting it into table. I am inserting the data through data load wizard process, how can i validate and restrict the wrong data.

Please guidee me .

I have never seen those two items ( "validation before inserting it into table" and "data load wizard" ) work nicely together.

IMHO - You are using the wrong tool for the job.

What you need is a Data Extract, Transform, and Load Wizard [ETL].  "Validation before inserting it into table" is usually a part of the process also.

There is no "APEX ETL Wizard", you have to use a "DIY ETL Wizard".  (DIY === Do It Yourself)

Recent thread went over the Extract portion of a DIY ETL Wizard:  Best way to load CSV files over 100 columns into database from Apex Application

In that thread, Scott posted a link to a nice blog that listed out the components for creating a proper "DIY ETL Wizard"

https://jeffkemponoracle.com/2018/11/load-spreadsheet-data-into-apex/

My $0.02

MK

1 - 9
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 16 2015
Added on Jan 18 2015
4 comments
5,056 views