Oracle 18C New Feature Private Temporary Table
Вставка
- Опубліковано 11 тра 2018
- What is oracle private temporary table? This video explains about the global temporary table, and private temporary table concepts.
A typo error in the slide, Please read "ON COMMIT DROP DEFINITION" instead of "ON COMMIT DELETE DEFINITION" - Наука та технологія
A typo error in the slide, Please read as "ON COMMIT DROP DEFINITION" instead of "ON COMMIT DELETE DEFINITION"
Thanks Prem for pointing it out.
Thnx a lot. But this naming convention governed by that parameter seemed little tough! Moreover, if multiple sessions are creating PTT by same name n structure, then wat and how dba_tables going to store/maintain the metadata session wise separately?
Explained very well...thank you dear :)
Welcome bro
So Global temp tables are like normal tables which once created will be available always, but only data will be private to the sessions?
In 19C facing issue for GTT table
Can you please Guide
Can we create index on GTT?
Siva could you please provide 2-3 use case for temporary table.
Any tutorials on oracle forms a d reports. Please share links if any. Thanks
Isn't Private Temporary Table very much similar to Local Temporary Table of 8i?
SQL> create private temporary table t(sno number) on commit preserve definition;
create private temporary table t(sno number) on commit preserve definition
*
ERROR at line 1:
ORA-00903: invalid table name
Thanks again Siva!
Welcome, thank you
Great content. Your help would be appreciated if you explain one example using this GTT in a procedure?
Sure bro, I will post an example
I found a typo in the video..
Just correcting it...
The two modes of Private temp tables are,
1) on commit PRESERVE definition
- session specific
2) on commit DROP definition
- table will be dropped automatically, once the commit or rollback issues
Thanks for informing. will try to correct it.
I have tried in the DB with DELETE but it didn't work... It worked with DROP option...
I hope you are trying in 18C DB right?
Send me yours scripts and steps you tried to my mail id, I will check and let you know tomorrow. ( mail to siva.k.academy@gmail.com)
I have tried in oracle website... LIVESQL...
create private temporary table test_18c_private_temp_table
(id number, name varchar(10))
on delete drop definition;
insert into test_18c_private_temp_table
Values(101,'Prem');
select * from test_18c_private_temp_table;
commit;
Again, if we try to query the table it will throw an error saying
"table or view doesn't exists".
When to use GTT in real time?
When ever you want to store temporary data for session
Please make video on SQL Injection in details
Sure bro, please stay tuned
plz add code in your blog.
@priyanka, Sure, will post soon.....
mind blowing bro nice scenario
i didn't do any great job bro, just trying to make everyone understand better as much as possible by me