Oracle Live SQL revised
It really helps with different tests and development when you have to multiply statements and run them in a different order. The second is about execution plans. In the past you had to create a plan table on your own and select from it. That time is over and now you can use the familiar interface of the dbms_xplan package. Creating a test table.
create table t1 as select rownum id, rpad('x',50,'x') str from dual connect by level <10001;
Run the "explain plan for" statement for the query we want to check.
explain plan for select /*+ gather_plan_statistics */ id from t1 where str='y';
select * from table(dbms_xplan.display(format=>'ALL'));
It works pretty well and only formatting needs to be fixed. So far it replaces tabs by spaces and it breaks the output from the dbms_xplan. I've written to Oracle with a request to fix that issue and as I am writing this blog post I've gotten confirmation from the Oracle team that it's going to be fixed in the next release. So, we are going to see the proper formatting pretty soon. Design tool. Now even if you don't know SQL you can try to use the design tab and create objects using the examples provided.
This may be useful for those who are taking their very fist steps in Oracle and need help with creating objects. Supplied schemas. If you don't want to create your own tables you can use the supplied schemas. These schemas are read only for you, but can be used to test your queries or to create your own objects. The schemas include familiar HR, SCOTT,OE and some new like WORLD, OLYM and others. You can read more thoroughly about the schemas using the help page.
You can run select from the schema's objects directly.
And I should mention that you are going to work using the latest 18c Oracle release and it is absolutely free of charge. Happy coding everyone.
On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Expand your Oracle Tuning Tools with dbms_utility.expand_sql_text

Expand your Oracle Tuning Tools with dbms_utility.expand_sql_text
Jan 12, 2024 1:21:37 PM
9
min read
Oracle E-Business Suite: Virtual host names
Oracle E-Business Suite: Virtual host names
Oct 6, 2015 12:00:00 AM
1
min read
Mitigating Long Distance Network Latencies with Oracle Client Result Cache

Mitigating Long Distance Network Latencies with Oracle Client Result Cache
Jan 4, 2024 1:52:47 PM
36
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.