CHR function for 18 times space?

hi,
Is there any function if i want 18 time space in my dbms output messages.
I am using CHR(32) as
DBMS_OUTPUT.PUT_LINE(chr(32)||chr(32)||chr(32)||chr(32)'** End Time ** : '||systimestamp );
or
DBMS_OUTPUT.PUT_LINE(' ** End Time ** : '||systimestamp );

Like say Frank Kulash
By default, SQL*Plus trims spaces from the beginning of each output line. To override that default, and allow spaces there, use FORMAT WRAPPED when you SET SERVEROUTPUT ON.
SET  SERVEROUTPUT ON   FORMAT WRAPPED
may i use also LPAD(' ',18)
Yes
can u explain,which 1 is good manner of programming?
It is the same, chr(32) is ' '.
I prefer chr(32) because is most visual. With it i understand better the code, but it is the same

Similar Messages

  • Placing a Low Level DB Function for Time Offset

    Would any one be able to point me to any documentation on the Oracle 10g R2 release that might help me understand if there is a way to modify datetime query parameters and datetime query results at a low level in the DB? R12 of Oracle Apps does not handle global implementations very well when it comes to running 24/7 with sites around the globe and handling data stored with a time element. Everything is stored using the single server time zone. So I thought perhaps there might be a way to modify the DB at a low level to perform the offset of the value for any datetime parameter to correspond to the proper server time zone to pull data and then to also offset the queried datetime values to the users, via a session value, time zone. So I am thinking long shot but perhaps there is a way to insert a function call to a function built in C and linked in to the DB somehow or the DB listener or the DB connection driver software. I don't know. I am familiar with OCI and SQLCA but don't believe these offer this type of interjection with the DB I am looking for. Of course, if there is a simple solution I am all for that.
    Thanks,
    Jason

    Adjusting the timezone at the session level doesn't do what I need it to do. At least based upon the tests I have done. And my research into changing the session DB time zone only applies to the new timestamp data types and not to the date data type.
    However, if you think that changing the DB session time zone setting would help do what I have stated please tell me.
    Thanks,
    Jason

  • Case function for time period

    I want to count the rows based on the date values and time periods of a date column. e.g.
    08/01/01 00:00 - 01:30 (row count)
    08/01/01 01:30 - 02:00 (row count) etc.
    I'm using the case function to create the time periods from the date column but I'm getting a syntax error, 'missing keyword' at between. How can I code the case statement to create the time periods. The following is the sql code I'm using.
    select TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
         case START_TIME
                   when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
                   else 'unknown'
         end as process_time,
         count(*)
    from V8_Event_Vw event
    group by TO_CHAR(START_TIME, 'yyyy-mm-dd'), START_TIME
    Thanks,
    Tom

    select TO_CHAR(START_TIME, 'yyyy-mm-dd') as process_date,
    case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
    else 'unknown'
    end as process_time,
    count(*)
    from V8_Event_Vw event
    group by TO_CHAR(START_TIME, 'yyyy-mm-dd'),
    case when TO_CHAR(START_TIME, 'hh24:mm') between '00:00' and '01:30' then '12:00 - 1:30 AM'
    else 'unknown'
    end
    *untested (as if I really needed to say that)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • My backup hard drive does not have enough space for time machine to perform a back up even after erasing entire contents of bu hard drive

    My backup hard drive does not have enough space for time machine to perform a back up even after erasing entire contents of bu hard drive.  The hard drive has been in service for almost two years performing this function with no sign of failure.  How do I adjust time machine perameters?

    The only way to limit the size of the backup is to exclude data from the backup, which you can do in Time Machine preferences.
    If you use multiple browsers, have you tried clearing your browser caches? However, that's just a stop gap if it works. You either need to limit what you backup or get another drive.

  • How can I open up more space on my external hard drive for Time Machine?

    I have a 500GB external hard drive that I use with Time Machine. I believe I have half designated for Time Machine and the other half to use as an external drive to put whatever I want on it. My issue is that now my Time Machine back up needs more than 250GB of space.
    How can I make more space available on Time Machine and less for the external half (maybe split it 400/100 for example) or just designate the whole 500GB for Time Machine?
    Am I going to have to reformat the hard drive? I'm trying to do this in a way that I'm not going to risk losing what might already be on Time Machine...
    I'm not sure how well I'm explaining this. Hopefully someone can help.
    Amanda

    I would also suggest you get a 2nd, much larger hard drive, partition it if desired, move your data to it, and start a 2nd Time Machine backup on it. You can set Time Machine to alternate between the 2 drives by adding the new drive to System Preferences/Time Machine. If you want to make a copy of your current backup on the new drive, you can do that using the Disk Utility Restore tab. If you chose to do that, make the copy first since using the Restore tab erases all data on the drive or the partition.

  • How do you change the setting in iTunes for the time-space between songs in your playlist?

    I need help changing my setting in iTunes, the time-space between songs.  In setting up iTunes I selected the "three-second" and now wish I'd selected "five-seconds".  Any help will be appreciated.  Thanks.

    Thank you Chris.
    This was not the exact solution for my problem but by misreading your instructions I accidentally found the answer. Just as simple as you suggest. I had already ensured the Crossfade was unchecked in iTunes. What had actually changed with the last software update was the settings on my ipod. I can't believe I never checked this before.
    The solution:
    ipod settings > Playback
    Audio Crossfade = "Off"

  • How much Minimum Disk Space is Required for Time Machine?

    Are there any recommendations from Apple for the size of external hard drive for Time Machine?
    Also, is there any formula for the amount of hard drive space = how any days, months, or years of backup available?
    Sorry about the poorly worded question.

    Size of HD = IBS + [30*DCD + 487*DCD]NM
    or
    Size of HD = IBS + 365NMDCD
    where
    IBS = Initial Backup Size (GBs)
    NM = Number of Months wanted before HD fills
    DCD = Daily Churn Data in GBs
    So lets say
    IBS=160 GB
    NM=24 (2 years wanted before having to worry about disk full)
    DCD=0.05 GB of daily churned data on average (50 MB of changed and new data)
    Size of HD = 160 + 365240.05 = 598 GB
    If you wanted just NM = 12 then the HD size should be around 350 to 400 GB
    Much depends on how many months you want to go before being bothered with disk full and how much average daily data churn you have.
    Note that TM will make much effort to clean up old data that can be safely deleted before giving up when disk becomes full. It will also provide you with the opportunity to clean up old backups yourself to free up space.
    Of course you can always re-format the TM backup HD and start over again but you obviously lose your TM backup history. You can also to decide you can delete the oldest 6 months of data and keep the more recent history to continue on with thr freed up disk space.

  • By adding an external hd to time capsule does it increase the size of available space for time machine back-ups?

    By adding an external hd to time capsule does it increase the size of available space for time machine back-ups?

    No, each drive is treated separately. Sorry!!

  • Extend disk space for Time machine?

    Hi,
    We can now use 2 disk drives at one location to keep our backup files with Time Machine, thanks to Mountain Lion
    Behavior is that both disks will end-up with the same backed-up files.
    Is it possible to make it such that the 2 disks complement each other so that a file is back up on one disk only? The outcome being that MacOS sees the 2 disks more as a single but LARGER disk for Time Machine.
    The problem I am trying to solve is that my Time-Capsule is starting to be too small for my needs and I would like to extend the storage capacity through a 2nd drive connected directly to my Mac.
    Thanks

    There are ways you can continue using the TC by just adding a larger external drive to it. See:
    My Time Capsule is too small to back-up my Mac(s). Now what?
    Note that third-party NAS drives won't work reliably with Time Machine, and neither will a hard drive connected to a wireless router (even an Apple AirPort base station). As long as you've already got the TC, you might as well continue using it in conjunction with a larger drive or hardware RAID setup.

  • Is it not recommended to use a partitioned external hard drive for time machine?

    1. i hv a 1 tb seagate  back up plus hard disc ..,,i want to make partitions for  using it for time machine, mac, and window repectively . is it not recommended to use a partitioned drive for time machine? some where i have red that time machine wont be able to restore data from external partioned hard drive  in case internal hard drive crashes.
    2. if i use the seagate back up plus 1tb for mac only and use time machine to take backup (roughly 250 GB) , then the rest space i cant use to transfer movies, pictures from a PC
    3. how should i best use the seagate back up plus hard drive (not seagate back up plus for mac) in a way that i use it for back up , and to work with both mac and PC?

    I use a partitioned external drive for Time Machine as well as other things.
    How you partition it is a function of yoru needs.
    Barry

  • Help in using listagg function for more than 8000 char.

    Hi Friends,
    Need you urgent help in using listagg function for more than 8000 char.
    I did the below sample SQL and in "e_orig" and "d_orig" for upto 4000 char it is working fine but I have to use it for more than 8000 char. and it is giving error,
    I checked the listagg function is having limitation of 4000 char.
    I tried but I am unable to achive this. Can someone provide me a sample example to achive this
    select d.dname,d.loc,e.hiredate
    ,listagg(e.ename,',' ) within group (order by e.deptno) over (partition by e.deptno) as e_orig
    ,listagg(e.ename, ',') within group (order by e.sal) over (partition by e.deptno) as d_orig
    from emp e, dept d
    where e.deptno=d.deptno;[ This is my first post, I gone through the guideline for posting a post , and try to go according to that ( I have not pasted here create table and insert as I have used basic table emp, dept for example), please let me know if still I should give this, I will take care from my next post ]
    Thanks in advance

    Interesting, I didn't know you could do that, but...
    BluShadow wrote:
    You could write some PL/SQL code that does it all for you, but that would involve loops and would be slow.Well, objects are written in PL/SQL aren't they? And presumably there'll be implicit looping too? So it's not at all obvious that this method will be faster than doing the joining in PL/SQL in memory. The only way to find out is to benchmark them - so I have done that.
    I noticed that OP's ref cursor actually only ever retrieves a single record for a bound department number, so I decided the best thing would be to test using a procedure that passes an output string back. I selected all (109) employees and put spaces in to ensure above 4000 characters. I also noticed that as he is using PL/SQL he probably can use a VARCHAR2 type, but just not ListAgg in the query, so I wrote short procedures as follows:
    SimpleAggChr     - bulk collect and array processing, VARCHAR2 output
    ClobAggPrc     - the custom aggregation method, CLOB output
    SimpleAggClob     - bulk collect and array processing, CLOB output
    I then wrote a driving script that calls them in the order above and times each call (I like benchmarking so I have my own timing object to make it easy). I then print the lengths for checking, and my object writes the timings to my output table. Running a few times I got varying results, but generally it looks like there isn't a lot to choose between them for performance.
    Here's the procedure code:
    CREATE OR REPLACE TYPE char100_list_type AS TABLE OF VARCHAR2(100)
    CREATE OR REPLACE PROCEDURE SimpleAggChr (x_out OUT VARCHAR2) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggChr;
    CREATE OR REPLACE PROCEDURE SimpleAggClob (x_out OUT CLOB) IS
      l_enames     char100_list_type;
    BEGIN
      SELECT first_name || '                                        ' || last_name
        BULK COLLECT INTO l_enames
        FROM employees
       ORDER BY salary;
      FOR i IN 1..l_enames.COUNT LOOP
        x_out := x_out || l_enames(i) || ',';
      END LOOP;
    END SimpleAggClob;
    SHO ERR
    PROMPT ClobAggPrc
    CREATE OR REPLACE PROCEDURE ClobAggPrc (x_out OUT CLOB) IS
    BEGIN
      SELECT clobagg(first_name || '                                        ' || last_name || ',')
        INTO x_out
        FROM employees
       ORDER BY salary;
    END ClobAggPrc;
    SHO ERRand the driving script:
    SET SERVEROUTPUT ON
    SET TIMING ON
    DECLARE
      l_enames_c1     CLOB;
      l_enames_c2     CLOB;
      l_enames_v     VARCHAR2(32767);
      l_timer     timer_set_type := timer_set_type ('Aggregation');
    BEGIN
      Utils.g_id := 'Aggregation';
      SimpleAggChr (l_enames_v);
      l_timer.Increment_Time ('SimpleAggChr');
      ClobAggPrc (l_enames_c1);
      l_timer.Increment_Time ('ClobAggPrc');
      SimpleAggClob (l_enames_c2);
      l_timer.Increment_Time ('SimpleAggClob');
      DBMS_Output.Put_Line ('SimpleAggChr returned string of length ' || Length (l_enames_v));
      DBMS_Output.Put_Line ('ClobAggPrc returned string of length ' || Length (l_enames_c1));
      DBMS_Output.Put_Line ('SimpleAggClob returned string of length ' || Length (l_enames_c2));
      l_timer.Write_Times;
    END;
    SET TIMING OFF
    SET LINES 150
    SET PAGES 1000
    COLUMN id FORMAT A30
    COLUMN line_text FORMAT A120
    SELECT line_text
      FROM output_log
    WHERE id = 'Aggregation'
    ORDER BY line_ind
    /and the results:
    SimpleAggChr returned string of length 5779
    ClobAggPrc returned string of length 5779
    SimpleAggClob returned string of length 5779
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:27.05
    LINE_TEXT
    Timer Set: Aggregation, constructed at 03 Nov 2011 16:27:07, written at 16:27:35
    ================================================================================
    [Timer timed: Elapsed (per call): 0.02 (0.000016), CPU (per call): 0.01 (0.000010), calls: 1000, '***' denotes corrected
    line below]
    Timer              Elapsed          CPU          Calls        Ela/Call        CPU/Call
    SimpleAggChr          9.84         0.36              1         9.84400         0.36000
    ClobAggPrc            9.37         0.32              1         9.37400         0.32000
    SimpleAggClob         8.25         0.22              1         8.25000         0.22000
    (Other)               0.00         0.00              1         0.00000         0.00000
    Total                27.47         0.90              4         6.86700         0.22500
    13 rows selected.

  • Any RunningApplications-like function for non-windowed processes?

    Am I missing any RunningApplications-like function for non-windowed processes like Unix executables? To start with I'd settle for processes in user-space but would ultimately like to list processes like Activity Monitor does. Even comparing RunningApplications results to user space Activity Monitor results will show the difference.
    As far as I can tell you need to go all the way down to kauth and kernel space to watch for non-windowed processes being launched. Is there somethig in-between I'm missing? A notification device about launching apps would be perfect if it cover all processes.
    Thanks,
    =Tod

    I think kqueue may be able to do what you want. Look at the EVFILT_PROC filter. You may have to watch a number of processes - perhaps all of them. But that would tell you any time you get a fork and whenever a process is reaped.
    I looked at kqueue at it does what I want but you need to register it on a by process/file basis which is great for a very specific set of things but not for overall system watching. (I also looked at fsevents but it is designed as a post-event notification system.) While NSWorkspace has the usual Cocoa model notifcation willlaunchApp, didlaunchApp, etc it seems that you need to get the kernel to watch the launch lifecycle of non-windowed functions.
    I actually did manage to get a comprehensive list of running apps out of parsing sysctl output with much less trouble than I expected. So far I have managed to get the pid, uid and abbreviated processname and the list seems to match the Activity Monitor list - at least at this testing printf stage. Getting the username from uid should be trivial and the full file name is doable it just requires some struct length and offset math. I'd like the launch path information but I can live without it for monitoring purposes if I can't figure out how to get it.
    This means that the monitoring part of the running system seems relatively straight forward - wrapping the call in an NSTimer and watching for changes in the returned results. But the watching of the actual starting and stopping of all processes remains some deeper work.
    Thanks for all the suggestions,
    =Tod

  • Are there any firmaware updates for time capsule?

    Are there any firmware updates for Time Capsule/Time machine?
    I just had a new hybrid (SSD and spinning disk) drive (750 GB) installed on my MacBook Pro and used Boot Kamp to partition it and run Windows xp. Now, my previously working Time Machine won't function. It says the "sparsebundle" is open (or in use)  preventing the back-up from working properly. When I try and remove and re-install Time Capsule as the disk to back-up to, it still doesn't work. My plan "B" is get a second Time Capsule and dedicate it to the MacBook. But, I fear I'll face the same problem.
    When I open to reconfigure Time Machine, the Time Capsule disk is identified as the back-up, but it's also seen in the "available disks to use for back-up" along with with Boot Kamp disk which is part of the new SSD hybrid hard drive just installed. (Remember it's the partitioned part running Windows xp.)
    I've unplugged/plugged-in the ethernet internet connection and the power cord many times to no avail. The message still says the sparsebundle is in the way.
    Do you think deleting Boot Kamp disk from the list of available hard drives might solve the problem?
    Bill in Tulsa

    TM can only use AFP and only on disks formatted HFS+ (ie Mac Extended Journaled) so it should not bring up a boot camp partition as a possible destination at all .. but I have not done that seutp.
    It says the "sparsebundle" is open (or in use)
    That error is well known. It should simply required the TC to be restarted..
    That sometimes gets things working where the simple restart won't.
    I would recommend using short names, with no spaces and pure alphanumeric. 
    That is C9
    http://pondini.org/TM/Troubleshooting.html
    If you have a more complicated setup.. I would recommend firstly doing a TM reset in the computer.
    See A4 in the same reference.
    Do a verify then of the sparsebundle on the TC.. A5 but you might need to inherit the old backup if you want to continue an old backup.. A new hard disk will make the TM consider the old backup no longer belongs to the computer.. there is a UUID connection to the actual hard disk used in the backup.
    Again read the info in pondini. B5 and B6.
    The sparsebundle in use is C12 but there are a number of sparsebundle issues in section C.. C17 is another common issue.
    Some of what you have done is not adequate.. eg disconnecting ethernet is not enough.. you need to reboot the TC.

  • Recommendations for external hd for Time Machine backups

    After having my 1TB G-Tech G-Drive Q desktop external h.d. crap out on me for a second or third time, this time for good, I give up on G-Tech. (I also had a faulty 500GB G-Tech portable which had to be replaced.)
    For many reasons, my iMac's Time Machine backups have to be stored on an external hard drive. Two or three times, the external h.d. has become corrupted or something and has had to be reformatted, losing all the previous backups and starting all over again. This time, since the external h.d. is toast, I have no backups at all.
    My MAIN question: Do any of you have a recommendation for an external hard drive - probably desktop, but not necessarily - preferably 1TB - which is RELIABLE?
    Is this h.d. corruption/repeated failure a function of Time Machine? The hard drive itself?
    What good is Time Machine if we lose backups all the time?

    limerick2010 wrote:
    Sorry to butt in, but I'm on the lookout for a solution to make a secondary, offsite back-up of my company's data. I was also looking at the usage of external hard disk for the purpose but am stumbling at a very basic question.
    If the first disk(say 1TB) runs out of space and I connect a new hard-disk, wouldn't Time Machine back up all the stuff previously backed up, all over again on the new disk?
    Exactly. Bt you're talking about two very different things: secondary backups vs. not enough room for primary backups.
    The whole point of secondary backups is having a second, separate set, so if something happens to the primary set (lost, corrupted, disk fails, etc.), you have another complete set. As noted in the link in my previous post, it's also a good idea to use a different app for the secondary set, in case there's a problem with the primary app.
    If your Time Machine disk gets full, you have three choices:
    Let Time Machine start deleting old backup(s) automatically, to make room for new ones. You don't need to keep them forever -- a few months should be plenty for most users.
    Get a new disk and start backing-up to it. Keep the old one "on the shelf" until you're sure you don't need the old backups any longer. You can always view and restore from them via the +*Browse ...+* option, per #17 in Time Machine - Frequently Asked Questions (or use the link in *User Tips* at the top of this forum).
    Get a larger disk, copy the old backups to it, and continue backing-up to the new one. See #18 in the FAQ.

  • Can I use one HD for 2 computer for time machine?

    I have an imac and macbook. I bought a new 500G external harddisk for time machine.. can I share the harddisk between 2 computer?
    Or I have to get 2 HD for 2 computer?

    happygal wrote:
    and can I put my other data on the external harddisk apart from the backup from time machine?
    Absolutely. Yes. You will be limiting the space available for Time Machine though. The more space available, the further back your Time Machine backup trail can go.
    Kryten

Maybe you are looking for

  • Trying to make a DVD with an old/non-existent version of iDVD!

    Ladies and Gentlemen, Please could you help me? I work at a school in the UK, and have recently been able to purchase an external Lacie DVD drive, as the school's computer (currently an iBook G4 with OSX 10.3.2 and a 1GHZ Power PC Processor – 640 MB

  • Q700 HDMI to DVI

    can anyone confirm if an ordinary HDMI to DVI adapter will work from Q700 to an LCD monitor with a DVI port? thanks.

  • Weird Ghost "highlight" box

    Ive created a nice little training module for my company. Its nearly done and I added a highlight box to one of the slides. Suddenly that highlight box is showing up on two other slides. I cant delete it and I cant move it. It just sits there. Wnen I

  • Getting tomcat,JSTL and JNDI working

    I have been trying to get this working for a quite a while now and I am so confused with different versions and this JNDI. All I want to to do as get taglibs working to query a database. I have installed Tomcat 5.5 and downloaded jakarta-taglibs-stan

  • Dependency between web project and bean module

    i am using netbeans [6.7], i created web application has different packages i created bean module separated from the web project i want this module use one of package from that web project so how can i do that by netbeans? also want the web project t