Pl/SQL Archives | Official TuningSQL.com Blog
Skip to content
  • TuningSQL.com
  • TuningSQL.com
Official TuningSQL.com Blog

Official TuningSQL.com Blog

Oracle Database SQL, Tuning, Features, and Toubleshooting

Category: Pl/SQL

  • Home
  • Oracle
  • Pl/SQL

Finding mod(power(x,y)) for Larger Values

May 27, 2022September 28, 2022 Kaley Crum

The following piece of Pl/SQL uses a clever bit of math to be able to raise a number to a very large power without having overflow problems. Suppose, for example, you wanted to calculate 2318 % 367 (2 to the… Read More

Oracle, Pl/SQLLeave a comment

Using PRAGMA AUTONOMOUS_TRANSACTION in a Function

November 19, 2020November 19, 2020 Kaley Crum

Here’s a quick example of how to use the AUTONOMOUS_TRANSACTION pragma in a function: If you use the AUTONOMOUS_TRANSACTION pragma in Pl/SQL, it creates a separate transaction from the transaction you are currently working in. Because we included it in… Read More

Oracle, Pl/SQL, Pragmas1 Comment

Easiest Way to Wrap Pl/SQL Code

November 8, 2020February 1, 2021 Kaley Crum

In this article, I’ve included the easiest possible way to wrap any piece of existing Pl/SQL code, using an anonymous Pl/SQL block. If you’ve stumbled on this page wondering “what does it mean to wrap Pl/SQL?” just know that it… Read More

Oracle, Pl/SQL, Wrapping Pl/SQL Code5 Comments

Conditional Compilation Errors in Pl/SQL

July 27, 2020August 13, 2020 Kaley Crum

Here’s a list of common Pl/SQL Conditional compilation errors, along with what may have caused them. This should allow you to know where to look in your code for errors. This isn’t a complete list, but it should be enough… Read More

Oracle, Oracle Error Messages, Pl/SQL, Pl/SQL Compiler Flags, Problems and TroubleshootingLeave a comment

Oracle: Coding Around NULL Values

June 18, 2020August 13, 2020 Kaley Crum

In Oracle, NULLs can complicate your code–a lot. Suppose, for example, you want to see if two different values are the same in a SQL query. You might be tempted to write something like this: The problem with the above… Read More

NULL Values, NULL Values, Oracle, Pl/SQL, SQL2 Comments

Get the Oracle Database Version Number

May 7, 2020August 13, 2020 Kaley Crum

If you’re looking for how to get the Oracle Database Version, there are lots of ways to do so, depending on what your end-goal is. Running A Quick Query The easiest, simplest, fastest method is to run the following query:… Read More

Oracle, Pl/SQL, Pl/SQL Compiler Flags, Versiondatabase version, oracle version, versionLeave a comment

“ORA-00904: invalid identifier” with FORALL Loop

January 12, 2020August 13, 2020 Kaley Crum

Spent an embarrassingly long period of time on an error with a FORALL loop. Can you see what my error is? Every time I ran the above block of code, I would get the following error: Error report – ORA-06550:… Read More

Arrays, FORALL, Oracle, Oracle Error Messages, Pl/SQL, Problems and TroubleshootingFORALL, invalid identifier, ORA-00904Leave a comment

FREE Sql Tuning Tips!

Get FREE tips and tricks for FASTER Oracle SQL queries delivered directly to your email inbox!

Just a minute...

Awesome! You're subscribed!!

Recent Posts

  • When Statistics Help with Filters
  • How to Make a “God User” in Oracle
  • View Hidden Parameters in Oracle
  • KUP-01005: syntax error: found “hash” (How to fix on an External Table)
  • Finding mod(power(x,y)) for Larger Values

Categories

  • Approximate Query Processing
  • Arrays
  • Autonomous
  • Baselines
  • Bind Variables
  • Caching
  • Certification
  • Creating Users
  • Cursors
  • Custom Aggregation
  • Data Dictionary Views
  • Data Types
  • Database Objects
  • Day to Second Interval
  • DBMS_METADATA
  • DBMS_UTILITY
  • Dirty Hacks
  • Execution Plans
  • Explain Plans
  • External Table Problems
  • FORALL
  • Hash Clusters
  • Hash Joins
  • Hints
  • Keywords
  • Network Connections
  • NULL Values
  • NULL Values
  • Oracle
  • Oracle Error Messages
  • Oracle SQL Developer
  • Parameters
  • Pl/SQL
  • Pl/SQL Compiler Flags
  • Pluggable Databases
  • Pragmas
  • Privileges
  • Problems and Troubleshooting
  • Regular Expressions
  • Row Level Security
  • Row Source Statistics
  • Scalar Subqueries
  • Scripts and Queries
  • SQL
  • SQL Monitor Reports
  • SQL Plan Management
  • Table Definition
  • Table Statistics
  • Tuning/Efficiency
  • Uncategorized
  • User Profiles
  • Users
  • Version
  • Virtual Columns
  • Wrapping Pl/SQL Code
  • Writing Queries for Performance
Copyright © TuningSQL.com All rights reserved.
Business Cast by Axle Themes