Tablspace used size in mb

hii everybody,
i have script to check tablespace usage and it is working fine but the problem is just used space is showing in '% ' i want used space in 'MB'.can anybody help me,how i get used space in MB? the script and its output is shown below,your help is highly appreciated.
thanks.
SQL>
SQL> select tablespace_name,
2 round(sum(allocated_space) / 1024 / 1024, 2) "Size (MB)",
3 round(sum(free_space) / 1024 / 1024, 2) "Free (MB)",
4 round((sum(free_space)/sum(allocated_space)) * 100, 2) "% Free",
5 round(((sum(allocated_space) - sum(free_space))/sum(allocated_space)) * 100, 2) "%Used"
6 from (select tablespace_name, bytes allocated_space, 0 free_space
7 from dba_data_files
8 union all
9 select tablespace_name, 0 allocated_space, bytes free_space
10 from dba_free_space)
11 group by tablespace_name
12 Order by 4
13
SQL> /
TABLESPACE_NAME Size (MB) Free (MB) % Free %Used
SYSTEM 700 1.81 .26 99.74
SYSAUX 700 40.25 5.75 94.25
USERS 7.5 1.5 20 80
EXAMPLE 100 21.56 21.56 78.44
UNDOTBS1 75 51.63 68.83 31.17
Edited by: 938946 on Jan 14, 2013 12:39 AM
Edited by: 938946 on Jan 14, 2013 12:40 AM

add this column:
Round(( SUM(allocated_space) - SUM(free_space) ) / 1024 / 1024, 2)see..
SELECT tablespace_name,
       Round(SUM(allocated_space) / 1024 / 1024, 2)
       "Size (MB)",
       Round(SUM(free_space) / 1024 / 1024, 2)
       "Free (MB)",
       Round(( SUM(free_space) / SUM(allocated_space) ) * 100, 2)
       "% Free",
       Round(( ( SUM(allocated_space) - SUM(free_space) ) / SUM(allocated_space)
             100, 2)
       "%Used",
       Round(( SUM(allocated_space) - SUM(free_space) ) / 1024 / 1024, 2)
       "Used (MB)"
FROM   (SELECT tablespace_name,
               bytes allocated_space,
               0     free_space
        FROM   dba_data_files
        UNION ALL
        SELECT tablespace_name,
               0     allocated_space,
               bytes free_space
        FROM   dba_free_space)
GROUP  BY tablespace_name
ORDER  BY 4; 

Similar Messages

  • Function module to find out DATA BASE size, free space, used size

    Is there any function module to find out DATA BASE , free space, used size
    FM that gives all the details of the Date base
    what data base, what is the size, free space, used space etc...
    instead of writing case by case for each data base. based on  CASE SY-DBSYS.

    Hi,
    Check this FM:
    DB02_ORA_SELECT_DBA_SEGMENT
    alternatively u can check the tcode: DB02
    thanks|
    Mahesh

  • QUERY TO GET database size, used size, freesize, tablespacesize of RQ table

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    ( Since i am not getting any reply i go for database forum)
    Pls reply
    S
    Edited by: AswinGousalya on Jul 8, 2009 3:41 PM

    Hello,
    This question looks like it is really for the Oracle RDBMS and not for Berkeley DB. In BDB, we do not have a notion of tablespace size. What database product are you using?
    regards,
    mike brey
    BDB engineering

  • Query for  to get  database size, used size, freesize, db size after drop

    Pls give me a query for to get database size, used size, freesize, tablespacesize of sometables which is starting with 'RQ%'
    I have to get result like this
    Total size, used size, free size ,tablespace size of RQ tables alone
    Reason why i go for "tablespace size of RQ tables" i want to know the size of database after deleting the rq tables
    Pls reply
    S

    i tried with
    SELECT
    --fs.tablespace_name name,
    df.totalspace/1024/1024 mbytes,
    (df.totalspace - fs.freespace)/1024/1024 used,
    fs.freespace/1024/1024 free
    FROM
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) TotalSpace
    FROM
    dba_data_files
    ) df,
    (SELECT
    --tablespace_name,
    ROUND(SUM(bytes)) FreeSpace
    FROM
    dba_free_space
    ) fs
    i AM GETTING total bytes, used bytes, free bytes
    I WANT TO include one more column.. database size after deleting rq tables
    Pls reply
    S
    Edited by: AswinGousalya on Jul 10, 2009 2:17 PM

  • When creating a new DPS should I use sizes offered by InDesign or the display size of the device?

    Hello all,
    When creating a new DPS, should I use the sizes offered by InDesign or the display size of the device?  I ran into this question when I was looking up the sizes of different devices and found that iPhone 5s, iPhone5c, and iPhone4s sizes differ than the defauly dimensions offered by InDesign. 
    Also, should I worry about the ppi resolution?  With iPhone, they all seem to be 326ppi but when dealing with other devices is this something that I should take into consideration?  Ideally, I could be creating DPS apps for all devices offered in the Digital Publishing drop down in InDesign (iPhone, iPad, Kindle Fire/Nook, and Android).
    Thank you for any help you can provide.
    By the way, if it helps I am using InDesign CC.

    Using 1024x768 and creating PDF articles will get you OK with both iPad resolutions, and, as Bob L. says, quite decent "one size fits all" result for all other devices.

  • Estimate ADF web app use size in Weblogic - quick question

    Hi
    1- Is there a good way to estimate or get a better accurate measurement of the amount of memory required/used by a running ADF app within Weblogic Server ?
    Eg How much memory footprint does a deployed ADF app uses (not including those apps that comes with weblogic installs in the deployment section of WLS UI) ?
    2- Because we have ADF as a web app, is there a usually a big increase in memory usages of ADF web app when more people are logged in ?
    Any memory tool as a quick way to get the memory sizes ?
    Thanks

    AFAIK,You need to first calculate the live data size for your application with the help of the GC logs to find out the ideal memory for your app to run :)
    You can enable the GC logs -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:<Filename> to find out the live data size for your application
    Tools to monitor the applications:
    JConsole/VisualVM/JRMC
    http://docs.oracle.com/javase/6/docs/technotes/guides/visualvm/index.html

  • Estimate ADF web app use size - quick question

    Hi
    1- Is there a good way to estimate or get a better accurate measurement of the amount of memory required/used by a running ADF app with Weblogic Server ?
    Eg How much memory footprint does a deployed ADF app uses (not including those apps that comes with weblogic installs in the deployment section of WLS UI) ?
    2- Because we have ADF as a web app, is there a usually a big increase in memory usages of ADF web app when more people are logged in ?
    Any memory tool as a quick way to get the memory sizes ?
    Thanks

    In short NO. What you have to do is to go through various tunning options at all the layers of ADF to increase performance as well as to have minimum memory consumption. Go through the Fusion Middle ware guide for the same. You can other memory profilers to understand how the memory is used by the application.

  • Abnormal increase of used size in oracle home directory

    Hi all,
    I have a production database Oracle 10g R2 (10.2.0.1.0) on HP-UX 11.23 and the /oracle directory is having 74 GB size.
    when i check the size of the /oracle mountpoint today it is showing 45 % used whereas it is 33 % yesterday eveining. the change in data increased is about 9GB.
    how could i found, what is increasing in this oracle_home.
    pls. give me some commands to find out what it leads to increase.
    DB: Oracle 10g (10.2.0.1.0)
    environment: HP-UX v11.23
    thanks and regards.

    Hi sb,
    thanks for the reply, i find this with your query.
    select trunc(first_time), round(sum(bytes)/(1024*1024))
    from dba_hist_log group by trunc(first_time) 2 ;
    TRUNC(FIR ROUND(SUM(BYTES)/(1024*1024))
    09-FEB-11 3100
    15-FEB-11 3600
    10-FEB-11 3600
    12-FEB-11 3600
    11-FEB-11 3600
    14-FEB-11 3600
    16-FEB-11 1400
    13-FEB-11 3600
    8 rows selected
    i didnot understand. can you please eloberate what the result says.
    thanks

  • Space used size decreased

    hi
    we got our DB's on SQL server2012 entriprise edition,recently i have ran rebuild index maintenance plan for a DB which is around 350GB as this was taking loads of time and consuming lots of disk space i have killed the process in the middle.As this 
    plan was taking loads of time to roll back i have restarted the services and then DB went to INRECOVERY and has taken much time to come back to normal online mode. when i have checked the log after recovery it was showing DB has been recovered with 1 transaction
    roll back and iam assuming that is rebuild. After this i have shrinked both LDF and MDF and everthing working fine,But i can see decrease in the SPACEUSED in MDF by 12GB could please some one help me to know the reason for this sudden decrease.
    with regards,
    Ram

    hi
    If iam not wrong shrinking MDF  will release it's existing free space to hard disk right,how come the space used for MDF file decreased.
    for reference i was using below query to calculate the growth of DB by seeing space used
    if exists (select * from tempdb.sys.all_objects where name like '%#dbsize%')
    drop table #dbsize
    create table #dbsize
    (Dbname sysname,dbstatus varchar(50),Recovery_Model varchar(40) default ('NA'), file_Size_MB decimal(30,2)default (0),Space_Used_MB decimal(30,2)default (0),Free_Space_MB decimal(30,2) default (0))
    go
    insert into #dbsize(Dbname,dbstatus,Recovery_Model,file_Size_MB,Space_Used_MB,Free_Space_MB)
    exec sp_msforeachdb
    'use [?];
      select DB_NAME() AS DbName,
        CONVERT(varchar(20),DatabasePropertyEx(''?'',''Status'')) ,  
        CONVERT(varchar(20),DatabasePropertyEx(''?'',''Recovery'')),  
    sum(size)/128.0 AS File_Size_MB,
    sum(CAST(FILEPROPERTY(name, ''SpaceUsed'') AS INT))/128.0 as Space_Used_MB,
    SUM( size)/128.0 - sum(CAST(FILEPROPERTY(name,''SpaceUsed'') AS INT))/128.0 AS Free_Space_MB  
    from sys.database_files  where type=0 group by type'
    go
    -------------------log size--------------------------------------
      if exists (select * from tempdb.sys.all_objects where name like '#logsize%')
    drop table #logsize
    create table #logsize
    (Dbname sysname, Log_File_Size_MB decimal(38,2)default (0),log_Space_Used_MB decimal(30,2)default (0),log_Free_Space_MB decimal(30,2)default (0))
    go
    insert into #logsize(Dbname,Log_File_Size_MB,log_Space_Used_MB,log_Free_Space_MB)
    exec sp_msforeachdb
    'use [?];
      select DB_NAME() AS DbName,
    sum(size)/128.0 AS Log_File_Size_MB,
    sum(CAST(FILEPROPERTY(name, ''SpaceUsed'') AS INT))/128.0 as log_Space_Used_MB,
    SUM( size)/128.0 - sum(CAST(FILEPROPERTY(name,''SpaceUsed'') AS INT))/128.0 AS log_Free_Space_MB  
    from sys.database_files  where type=1 group by type'
    go
    --------------------------------database free size
      if exists (select * from tempdb.sys.all_objects where name like '%#dbfreesize%')
    drop table #dbfreesize
    create table #dbfreesize
    (name sysname,
    database_size varchar(50),
    Freespace varchar(50)default (0.00))
    insert into #dbfreesize(name,database_size,Freespace)
    exec sp_msforeachdb
    'use [?];SELECT database_name = db_name()
        ,database_size = ltrim(str((convert(DECIMAL(15, 2), dbsize) + convert(DECIMAL(15, 2), logsize)) * 8192 / 1048576, 15, 2) + ''MB'')
        ,''unallocated space'' = ltrim(str((
                    CASE  
                        WHEN dbsize >= reservedpages
                            THEN (convert(DECIMAL(15, 2), dbsize) - convert(DECIMAL(15, 2), reservedpages)) * 8192 / 1048576
                        ELSE 0
                        END
                    ), 15, 2) + '' MB'')
    FROM (
        SELECT dbsize = sum(convert(BIGINT, CASE  
                        WHEN type = 0
                            THEN size
                        ELSE 0
                        END))
            ,logsize = sum(convert(BIGINT, CASE  
                        WHEN type <> 0
                            THEN size
                        ELSE 0
                        END))
        FROM sys.database_files
    ) AS files
        SELECT reservedpages = sum(a.total_pages)
            ,usedpages = sum(a.used_pages)
            ,pages = sum(CASE  
                    WHEN it.internal_type IN (
                            202
                            ,204
                            ,211
                            ,212
                            ,213
                            ,214
                            ,215
                            ,216
                        THEN 0
                    WHEN a.type <> 1
                        THEN a.used_pages
                    WHEN p.index_id < 2
                        THEN a.data_pages
                    ELSE 0
                    END)
        FROM sys.partitions p
        INNER JOIN sys.allocation_units a
            ON p.partition_id = a.container_id
        LEFT JOIN sys.internal_tables it
            ON p.object_id = it.object_id
    ) AS partitions'
    if exists (select * from tempdb.sys.all_objects where name like '%#alldbstate%')
    drop table #alldbstate  
    create table #alldbstate  
    (dbname sysname,
    DBstatus varchar(55),
    R_model Varchar(30))
    --select * from sys.master_files
    insert into #alldbstate (dbname,DBstatus,R_model)
    select name,CONVERT(varchar(20),DATABASEPROPERTYEX(name,'status')),recovery_model_desc from sys.databases
    --select * from #dbsize
    insert into #dbsize(Dbname,dbstatus,Recovery_Model)
    select dbname,dbstatus,R_model from #alldbstate where DBstatus <> 'online'
    insert into #logsize(Dbname)
    select dbname from #alldbstate where DBstatus <> 'online'
    insert into #dbfreesize(name)
    select dbname from #alldbstate where DBstatus <> 'online'
    select  
    d.Dbname,d.dbstatus,d.Recovery_Model,
    (file_size_mb + log_file_size_mb) as DBsize,
    d.file_Size_MB,d.Space_Used_MB,d.Free_Space_MB,
    l.Log_File_Size_MB,log_Space_Used_MB,l.log_Free_Space_MB,fs.Freespace as DB_Freespace
    from #dbsize d join #logsize l  
    on d.Dbname=l.Dbname join #dbfreesize fs  
    on d.Dbname=fs.name
    order by Dbname

  • How to redefine the used size of memory for the OC4J of the JDeveloper

    Hi!!!
    I am developing a project that works with net (Route), when I I execute the application of the error because the bank that it loads demands more free memory of the OC4J, somebody knows as I I configure a bigger size of memory for the OC4J in the JDveloper?
    thanks...

    Try setting these parameters under project properties -> Run/Debug configuration -> Java options

  • Virtual Disk used Size is Zero

    Hi All,
    Got a 3.0.2 test environment, 2 hosts with a seperate physical VM Manager box. Been creating Xen PVM guests using both a downloaded OL5U7 template to clone from as well as using network boot to extracted iso via ftp (also OL5U7).
    For the clones, I noticed the virtual disk name defaults to a 32-character string while I could name the virtual disk for the network boot method. What's the best practise for organising this? Should I leave the Virtual Disk name blank so it defaults to a 32-character string like the cloned guests?
    Also, in Homes > Server Pools > Repositories > Virtual Disks, the cloned guests are showing the correct virtual disk usage but for the guests created using network boot to iso is showing zero for disk usage. The only difference I see between the 2 types of guests is the giest created using the extrated iso is using lvm for the root partition.
    Is there a way to refresh the ovm manager view such that the disk usage is accurate for the guests?
    Thanks.

    831583 wrote:
    For the clones, I noticed the virtual disk name defaults to a 32-character string while I could name the virtual disk for the network boot method. What's the best practise for organising this? Should I leave the Virtual Disk name blank so it defaults to a 32-character string like the cloned guests?Up to you. The actual filename will always be the UUID. The Manager just allows you to name new disks for display in the Manager only.
    Also, in Homes > Server Pools > Repositories > Virtual Disks, the cloned guests are showing the correct virtual disk usage but for the guests created using network boot to iso is showing zero for disk usage. The only difference I see between the 2 types of guests is the giest created using the extrated iso is using lvm for the root partition.Correct. For a Network Boot image, the initial disk usage is 0. This will increase over time as more content is stored inside the image.
    Is there a way to refresh the ovm manager view such that the disk usage is accurate for the guests?Refresh the repository.

  • How to use SIZE as column name

    I have a database that I am trying to move from MSAccess to ORACLE. There is a column in one of the tables called 'SIZE'. I have moved the table into ORACLE, but I cannot insert or update any rows of the SIZE column is involved. There is a lot of legacy here and I do not want to rename the column. In MS Access I was able to say [SIZE]='44' But that does not seem to work in ORACLE.
    Is there a similar syntax in ORACLE? I have tried (SIZE), 'SIZE', tablename.SIZE, "SIZE" nothing seems to work.
    Please help.
    Thanks in advance.

    As long as you surround the column name with double quotes and specify the case for the column name correctly, you should have no error.
    SQL> create table sizes ("SIZE" number, "Size" number, "size" number) ;
    Table cr&eacute;&eacute;e.
    SQL> insert into sizes ("SIZE", "Size", "size") values (1, 2, 3) ;
    1 ligne cr&eacute;&eacute;e.
    SQL> select * from sizes ;
         SIZE      Size      size
            1         2         3
    SQL> update sizes set "size" = 4 where "SIZE" = 1 ;
    1 ligne mise &agrave; jour.
    SQL> select * from sizes ;
         SIZE      Size      size
            1         2         4

  • Adding text to indesign pages with specific font ,size,and color using javascript

    Hello,
    Using javascript i am able to add some text to each page of an indesign file.
    myNewText = "SOME TEXT"
    myTextFrame = myPage.textFrames.item(0);
    tempframe = myTextFrame.contents;
    myTextFrame.contents =  myNewText + tempframe ;
    But i want to specify the font used,size and color for that text.
    When i try the code mentioned in indesign javascript scripting guide
    myNewText .appliedFont = app.fonts.item("Times New Roman");
    myNewText .fontStyle = "Bold";
    nothing gets changed and font family already used stays the same.
    How can i do that only for the added text and not for the whole content?I dont want to add the text to a new text frame I want to append it to the existing text frame.
    And is there a way to specify font size too?
    thank you

    There's a mixup going on here. Let's see if we can sort out some of it
    at least.
    If you just want to add new text to an already existing text frame,
    that's easy:
    myTextFrame.contents += "Hello";
    But if you want the new text to have unique formatting, it's a little
    more complicated.
    There are two simple ways to do it, I think:
    1. Create a temporary text frame, as you have done, and add the text,
    and format everything in there. Then move() that formatted text to the
    end of myTextFrame and delete the temporary frame:
    tempFrame = app.activeDocument.textFrames.add();
    tempFrame.contents = "New Text";
    tempFrame.paragraphs[0].appliedFont = app.fonts.itemByName("Times New
    Roman"); // etc...
    tempFrame.paragraphs[0].move(myTextFrame.insertionPoints[-1],
    LocationOptions.AFTER);
    tempFrame.remove();
    2. The other option, is to add the text directly to your textFrame. But
    if you want to format only that text, you have to store where the text
    started:
    myTextFrame = app.selection[0];
    firstInsertionPoint = myTextFrame.insertionPoints[-1].index;
    myTextFrame.contents += "New Text";
    myAddedText =
    myTextFrame.characters.itemByRange(myTextFrame.insertionPoints[firstInsertionPoint],
    myTextFrame.insertionPoints[-1]);
    myAddedText.appliedFont = app.fonts.itemByName("Trajan Pro"); // etc.
    What you've done in your sample script, however, is to try to apply a
    font to a simple JavaScript string. It won't work, but the way you did
    it, it won't throw an error either, because in fact you've created a new
    property of your string. (myString = "Hello"; myString.appliedFont =
    "Times"; // myString now has a Javascript property called appliedFont --
    but that's nothing to do with InDesign!)
    HTH,
    Ariel

  • Can we use Column Names in Parameter Cursor

    Hi
    can we use Column Names in Parameter Cursor??
    DECLARE
    CURSOR Emp_Cur (P_Deptno NUMBER)
    IS
    SELECT Empno, Ename
    FROM Emp
    WHERE Deptno = P_Deptno;
    BEGIN
    FOR Emp IN Emp_Cur(10)
    LOOP
    DBMS_OUTPUT.PUT_LINE('The Employee Number is: '||emp.Empno);
    DBMS_OUTPUT.PUT_LINE('The Employee Name is: '||emp.Ename);
    END LOOP;
    FOR Emp IN Emp_Cur(20)
    LOOP
    DBMS_OUTPUT.PUT_LINE('The Employee Number is: '||emp.Empno);
    DBMS_OUTPUT.PUT_LINE('The Employee Name is: '||emp.Ename);
    END LOOP;
    END;
    In the above Program, I send Deptnumber. If i send Column names like Empno, Ename. What can i do??
    If Declare Samething Through Parameter Cursor, it doesn't accept VARCHAR2(Size)

    For parameters you don't use size, just the type (DATE, NUMBER, VARCHAR2, CLOB, ...)
    DECLARE
      CURSOR Emp_Cur (P_Ename VARCHAR2)
      IS
        SELECT Empno, Ename
        FROM Emp
        WHERE Ename = P_Ename;
    BEGIN
      FOR Emp IN Emp_Cur('SCOTT')
      LOOP
        DBMS_OUTPUT.PUT_LINE('The Employee Number is: '||emp.Empno);
        DBMS_OUTPUT.PUT_LINE('The Employee Name is: '||emp.Ename);
      END LOOP;
    END;

  • Writing procedure using table name as parameter

    I want to write a procedure to sample size any table. It could be employees, departments, etc. It will not know anything about the table (what table, columns, datatypes) until it is called.
    I want to invoke it sample_size(table_name_in, table_name_out, sample_sz).
    Table_out will be created and empty. It will determine the columns to be selected from table_in.
    It is a given that all columns in table_out exist in table_in with same name/datatypes.
    Pseudocoding:
    determine increment using size of table_in and sample_sz
    build out_var list from table_out
    select out_list from table_in
    for (rows in table_in) loop by increment
    insert into table_out
    end for
    I wrote function to get cursor:
    create or replace
    FUNCTION get_cursor
    (table_nm IN VARCHAR2,
    flds IN VARCHAR2)
    RETURN sys_refcursor
    IS
    cur sys_refcursor;
    vQry VARCHAR2(4000);
    BEGIN
    vQry := 'SELECT ' || flds || ' FROM ' || table_nm;
    OPEN cur FOR vQry;
    RETURN cur;
    END get_cursor;
    What I cannot figure out is how to define rowtype in calling procedure:
    PROCEDURE
    sample_size( table_in IN VARCHAR2,
    table_out IN VARCHAR2,
    sample_sz IN NUMBER )
    IS
    c1 sys_refcursor;
    vInto VARCHAR2(4000);
    BEGIN
    -- code to get variables desired into variable vInto (I know how to do this)
    c1 := get_cursor(table_in,vInto);
    LOOP
    FETCH c1;
    EXIT WHEN c1%NOTFOUND;
    -- code to decide wether to insert row into table_out
    END LOOP;
    CLOSE c1;
    END sample_size;
    I get error on FETCH c1; line:
    Error(47,15): PLS-00103: Encountered the symbol ";" when expecting one of the following: . into bulk
    All discussions I found about subject will have something similar to:
    Rec emp%rowtype
    and then
    fetch c1 into Rec
    None of the discussions showed me how to process an unknown table.
    If tomorrow someone tells me to sample_size table CITIES, I want to use function without having to change it.
    This is my first post. I hope I gave enough information. Thanks for any answer.

    Welcome to the forum.
    If yours is not an exercise why you don't want to use just
    <tt><b>[url http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#SQLRF01702]select * from table_name {sample_clause}</b></tt> ;)
    Regards
    Etbin

Maybe you are looking for

  • Embed pdf as part of jsf page

    hi, i want to embed a pdf as part of a jsf page. any suggestions how to do this?

  • Clipping Path Script from lowres to hires

    Hello all. I am trying to find out if there is a script that can transfer a clipping path from a low resolution to a high resolution image. Perhaps from one folder of low res images to another folder of high resolution images of the same file name. D

  • DMS Issue

    I created a DIR and it is in released staus . I change the status from released to correction. One class is already added in the DIR. I want to add a new class in that DIR. but the system won't allow me. Message appearing "Multiple classification not

  • Fm dates

    what r the different function modules for dates?

  • HELP!!! Adobe Flash CC pencil and paint brush not drawing properly!!!

    Hi, The paintbrush tool and the pencil tool draw upside down when I am using my graphics tablet, and I know it's not the tablet that's the cause because it works perfectly in paint and photoshop cc, it's just flash cc that has the issue!! how do I so