Quantcast
Channel: Toad for Oracle Forum - Recent Threads
Viewing all 4385 articles
Browse latest View live

RE: Toad for Oracle 12.12 bug reporting (job_name vs quotation marks)

$
0
0

Thanks.   This will be fixed in the next beta.


RE: TOAD Space Manager

$
0
0

In the latest version of Toad, when you are prompted to set up the space manager objects, near the top of the dialog you can choose between the TOAD schema and another schema.

RE: Toad for Oracle 12.12 bug reporting (job_name vs quotation marks)

RE: Toad for Oracle datafile shrinking feature should perhaps take into account recyclebin contents

$
0
0

I actually have some code in there that should be making it take recycle bin into account, but I found a problem with it, so I'll fix.   A prompt/indicator that recyclebin is not empty is a good idea.   I can add that to.

Toad for Oracle Base edition

$
0
0

Toad for Oracle 12.12 Base edition have SQL history , and Create Scheduler Job ?

RE: Toad for Oracle datafile shrinking feature should perhaps take into account recyclebin contents

Toad for Oracle datafile shrinking feature should perhaps take into account recyclebin contents

$
0
0

Hi

So recently I was stuck with shrinking USERS tablespace datafile. Although there (at the end of the datafile) were at least few hundred MB free space, but I couldn't resize this file even like 1MB.

When tried datafile shrinking feature inside Toad (Schema Browser -> Tablespaces -> (select single tablespace) -> Datafiles -> (select single datafile) -> Alter datafile -> Minimum Size?), then it, at start, actually allowed to shrink datafile (few hundred MB), but when I clicked "OK" from this dialog box, then I got ORA error:

"ORA-03297: file contains used data beyond requested RESIZE value"

I couldn't figure this out at start, but then I was wondering, what if something is in recyclebin. So the next step for me would be to

SQL> purge dba_recyclebin;

After that I managed to shrink datafile exactly as Toad suggested me.

So, what I am trying to say is, perhaps there could be this feature, that along with the minimum size suggests also that this resize value is possbile only if recyclebin is purged. Maybe there pops up another dialog box that asks me "Do you want to purge dba_recyclebin?", Yes/No answers.

Or.

If you don't like this idea, then this "Minimum Size?" feature should not suggest me resize value that isn't possible at the present time. So in other words, it needs to consider recyclebin contents.

I personally would like first idea more..:)

Toad for Oracle 12.12.0.39

Regards

Raul

RE: Toad 12.5 hung on startup

$
0
0

Spent hours searching for the problem.

Finally the solution in my case it was default printer that was inaccessible over the network.

Once I have set another local printer - the problem was gone.


Toad 12.5 hung on startup

$
0
0

Hi,

I've installed Toad 12.5 today over an existing 12.1 installation. After install I want to start Toad 12.5 and it hung on startup. The splash screen pops up and tell's me "Checking for critical files......" And then nothing happens.

I run Toad on a Windows 7 Professional Client, CPU: Intel Dual Core 2.70 GHz, 4 GB RAM, 32-bit. Oracle Client is also 32-bit. Version 12.1 works fine.

RE: Toad for oracle Base edition

$
0
0

It depends on the key.  Toad is licensed on a Per User basis so if you have a single license, it can't be shared between users.  There are keys that allow multiple users.  Your best bet is to contact sales in this case.

Toad for oracle Base edition

$
0
0

Toad for oracle license key 可以多用戶共用嗎

RE: Toad editor does not allow me to edit the query in editor

$
0
0

Is your organization using Toad's Team Coding?

Michael

Toad editor does not allow me to edit the query in editor

$
0
0

hi,

am using oracle 10g i have multiple tables and views. my problem is when i type name of view and press F4 key it leads me to the view painter which is fine but in the same painter there is a button called script( to see the script for the specific view) and Clicks the 'Copy script to editor' option shown at the left top of window it copies the script in the editor but does not allow me to edit the query.

anyone knows the reason behind this issue , kindy share your views, your help would be highly appreciated.

Thanks

RE: "ToadDirList" Reliance on 12.2 Desupported SQLJ

$
0
0

The purpose of ToadDirList is to get a file listing of a particular folder on the database server, and insert that data as rows in a table called TOAD_DIR_LISTING.   Toad then reads out of that table to display the list of files that you can choose from.    I have a 12.2.0.1 pluggable database and it works there.   My 12.2.0.1 database was a fresh install, not an upgrade.  Maybe that has something to do with it.

I would do this with straight SQL or built-in Oracle packages if I could find a way to do that.   Java was the only way that I was able to get this done.   If you know of a non-Java way to do this, I'm interested.

The source code for it is included as a Java Source.  So you should be able to find in using the Schema Browser in whatever database that ToadDirList exists.   

"ToadDirList" Reliance on 12.2 Desupported SQLJ

$
0
0

We just upgraded to 12.2 and I cannot recreate the Toad schema objects from Trace File Browser. It results in a ORA-24344 error and the java error messages are lengthy compiler exceptions. I thought it may be the SQLJ, but I'm not a serious java programmer.  Can you provide a functional ToadDirList or standalone schema generation script that is the equivalent of what TFB does? We have other custom java in these (2) databases that still work using PreparedStatement. 

references:

https://docs.oracle.com/en/database/oracle/oracle-database/12.2/upgrd/desupported-features-oracle-database-12c-r2.html#GUID-EAB2EBD9-9DED-48D1-A46A-4B83AEC09B0C

SQLJ Support Inside Oracle Database

Starting with Oracle Database 12c release 2 (12.2), Oracle does not support running server-side SQLJ code.

Oracle supports using client-side SQLJ. However, Oracle does not support the use of server-side SQLJ, including running stored procedures, functions, and triggers in the database environment.


RE: Oracle 12c alert logs not accessible from TOAD, Oracle 11g alert logs are fine!

$
0
0

That's a pretty old version of Toad, which came out before Oracle 12c.   Try pulling a trial version.  See if it's fixed there.   If it is still broken there, let me know.

Oracle 12c alert logs not accessible from TOAD, Oracle 11g alert logs are fine!

$
0
0

Hi All,

         We are using TOAD for Oracle(12.1) - it works fine while accessing our 11g database alert logs but when we try to access any Oracle 12c database alert log, it throws UTL_FILE failed with ora-29283 error!

Any help in fixing it will be appreciated.

Thanks.

RE: "ToadDirList" Reliance on 12.2 Desupported SQLJ

$
0
0

www.oracle-developer.net/display.php has a non-PL/SQL approach but the OS dependent shell script is another sticky point.

This without the SQLJ will compile in my Solaris 11.3 64-bit Oracle 12.2.0.1. It fails with the 10 lines uncommented.

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED TOAD."ToadDirList"
as import java.io.*;
  import java.sql.*;
  import java.util.Date;
  import java.text.SimpleDateFormat;
  import oracle.jdbc.driver.OracleSQLException;

public class ToadDirList
{
    public static void getList(String directory) throws IOException, SQLException, SQLDataException
    {
      boolean exists = (new File(directory)).exists();
      if (exists)
      {
          File path = new File(directory);
          String[] list = path.list();
          String element;

          for(int i = 0; i < list.length; i++)
          {
            element = list[i];
            String fpath = directory + "/" + list[i];
            File f = new File(fpath);
            long len;
            Date  date;
            String ftype;
            String sqldate;
            SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd kk:mm:ss");
            if (f.isFile())
            {
              len   = f.length();
              date  = new Date(f.lastModified());
              sqldate = df.format(date) ;
              ftype = "F";
            }
            else
            {
              len   = 0;
              sqldate  = null;
              ftype = "D";
            }
           // try
           // {
           //   #sql { INSERT INTO Toad_dir_listing (file_name, file_size, type, modified)
           //          VALUES (:element, :len, :ftype, to_date(:sqldate,'YYYY-MM-DD HH24:MI:SS')) };
           // }
           // catch (Exception e)
           // { /* Sometimes the date doesn't get translated propertly.  Proceeed without it. */
           //   #sql { INSERT INTO Toad_dir_listing (file_name, file_size, type, modified)
           //          VALUES (:element, :len, :ftype, null) };
           // } /* try..catch */
          } /* for loop */
      } /* directory exists */
      else
      {
      throw new IOException("Folder " + directory + " does not exist on server.");
      }
    } /* getlist */
};
/

The one I got and adapted for my apps from the original TOM via Sean Dillon. It still compiles successfully in my Solaris 12.2. Some smarter guy was nice enough to update my SQLJ with JDBC syntax. I will try to evolve it to fit the Toad table.....

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED myschema."DirList"
as //
import java.io.*;
import java.sql.*;
import oracle.jdbc.driver.*;
public class DirList
{
   public static void getList(String pchr_directory)
      throws SQLException
   {
      DriverManager.registerDriver (new OracleDriver());
      Connection conn = DriverManager.getConnection("jdbc:default:connection:");
      conn.setAutoCommit (false);

      // This filter only returns files
      FileFilter lobj_filesOnly = new FileFilter()
      {
         public boolean accept(File lchr_file)
         {
            return lchr_file.isFile();
         }
      };

      File lchr_path = new File( pchr_directory );
      File[] larr_list = lchr_path.listFiles(lobj_filesOnly);
      File lobj_element;
      String lchr_name;
      String lchr_modified_dt;

      PreparedStatement InsertStmt = conn.prepareStatement
         ("INSERT INTO dir_list (filename_tx, file_dt) "+
          "VALUES (?, TO_TIMESTAMP(?,'MM/DD/YYYY HH24:MI:SS'))" );

      for(int i = 0; i < larr_list.length; i++)
      {
         lobj_element = larr_list[i];
         lchr_name = lobj_element.getName();
         lchr_modified_dt = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(new java.util.Date (lobj_element.lastModified()));

         InsertStmt.setString(1,lchr_name);
         InsertStmt.setString(2,lchr_modified_dt);

         // add file name/last modified date to DIR_LIST table
         InsertStmt.executeUpdate();
      }
      InsertStmt.close();
      conn.close();
   }
}
/

RE: "ToadDirList" Reliance on 12.2 Desupported SQLJ

$
0
0

This functions for me and will retrieve the files. I hardcoded the F since I don't know or see a need for D.

CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED TOAD."ToadDirList"
as  
import java.io.*;
import java.sql.*;
import oracle.jdbc.driver.*;

public class ToadDirList
{
   public static void getList(String pchr_directory)
      throws SQLException
   {
      DriverManager.registerDriver (new OracleDriver());
      Connection conn = DriverManager.getConnection("jdbc:default:connection:");
      conn.setAutoCommit (false);

      // This filter only returns files
      FileFilter lobj_filesOnly = new FileFilter()
      {
         public boolean accept(File lchr_file)
         {
            return lchr_file.isFile();
         }
      };

      File lchr_path = new File( pchr_directory );
      File[] larr_list = lchr_path.listFiles(lobj_filesOnly);
      File lobj_element;
      String lchr_name;
      String lchr_modified_dt;
      long len;
      
      PreparedStatement InsertStmt = conn.prepareStatement
         ("INSERT INTO Toad_dir_listing (file_name, modified,file_size,type ) "+
          "VALUES (?, TO_TIMESTAMP(?,'MM/DD/YYYY HH24:MI:SS'),?,'F')" );

      for(int i = 0; i < larr_list.length; i++)
      {
         lobj_element = larr_list[i];
         lchr_name = lobj_element.getName();
         lchr_modified_dt = new java.text.SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(new java.util.Date (lobj_element.lastModified()));
         len   = lobj_element.length();
         InsertStmt.setString(1,lchr_name);
         InsertStmt.setString(2,lchr_modified_dt);
         InsertStmt.setLong(3,len);

         // add file name/last modified date to DIR_LIST table
         InsertStmt.executeUpdate();
      }
      InsertStmt.close();
      conn.close();
   }
}
/

RE: Error - Parameter not found - when exporting data in Schema Browser

$
0
0

That sounds vaguely familiar and I think it has been fixed in the latest version.   I think this will get you past it.  Let me know if it does not.

1) Start Toad
2) Click the “Configure Toad Options” icon on the main toolbar (roughly in the middle of the toolbar)
3) In the options dialog, on the left hand side, click “General”.
4) Click the “Open Folder” button on the right. A windows explorer window will open.
5) Close Toad (If you attempt to make edits to Toad.ini while Toad is running, your edits will be overwritten)
6) In the windows explorer window, browse down to “User Files”
7) Double-click the “Toad.ini” file in the “User Files” folder.
8) Search for v_start_date in Toad.ini and delete any lines with it.
9) Save Toad.ini and see if that fixes it.

Viewing all 4385 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>