Group by Date and place of DateTime

Hello

I'm looking for some counts that are grouped by date / time to date.  For example, I run the query below.

ALTER session SET NLS_DATE_FORMAT = "mm/dd/yyyy";

SELECT count (distinct contact_id) as charges, created in the created_date

of s_con_chrctr

where created > = TO_CHAR('07/01/2015') and created < = TO_CHAR('07/10/2015')

and created_by = 1-J9455J'

Group by created;

The results are as follows.

COUNTIES CREATED_DATE
102/07/2015
102/07/2015
102/07/2015
102/07/2015

I think that what is happening because this column is a datetime column and his back one record for each time specific in this day.  The results, I'm looking for are...

COUNTIES CREATED_DATE
1502/07/2015
1703/07/2015
3504/07/2015
1105/07/2015

How to change my query to group by date and not by date time?

So created is a date, then do not compare with TO_CHAR literals.

If you want to skip the part time in your account, use TRUNC:

SELECT count (distinct contact_id) as charges, TRUNC (created) as created_date

of s_con_chrctr

where created > = TO_DATE (July 1, 2015 "," MM/DD/YYYY ') and created< to_date('07/11/2015',="">

and created_by = 1-J9455J'

TRUNC Group (created);

Tags: Database

Similar Questions

  • XY graph, initialize multiple groups of data and update a single set of data

    Hello

    I have developed a VI to control the coordinates XY of a platform using two engines. A version a little kwicks xy plotter.

    The detail that I could use help in is the following:

    1. I have 469 (or 400 ~ ish, there are two modes) of the discrete points to be initialized/connected to a XY graph such that a cursor on the XY graph can break discrete points. It's well done.

    2. I have to keep track of the current position of XY. It's also well done

    3. I have to keep track of the former x - y positions, where I was able to extract the data correctly. This is done by a switch.

    4. almost all VI has an a giant loop, although sequenced by 0 of the past a structure of case to another until you reach the final "global dummy.

    Now, signals which are processed to the engine through a USB digital signal generator, I think not that the specifications are necessary. Essentially I needed bitmask each individual movement, so the 'engine of movement' part is embedded in the giant of while loop. This means that whenever I have add a new feature to my VI, engine movements slow down, each time that the operating system on the computer decides to run an automatic update, drivers slow down. I do not have the luxury of multi-threading or a microcontroller immediately.

    At this point, my engines are terribly slowly, and I'll try to find a way to make them run faster. I am sure that the bottleneck is actually treatment for my data XY graph.

    My XY graph manages 3 sets of data,

    a. 469 discrete points (table 2 x 469) or 400 ~ ish discrete points (2 x 400 ~ table)

    position current c. (x, y)

    d. "rescued/captured" (2xincreasing up to table 469) positions

    everything has, b, c are inside the while loop. A switch determines the 'a' is used.

    the berries are grouped and then sent in the graph xy inside the while loop. I need the graph to be interactive to the cursor and data.

    Now, is that I wish to run things.

    1. selection from either a or b is responsible to the xy chart (by a switch).

    2 c is updated constantly.

    3 d is updated whenever the data was captured (by a switch).

    Basically, I need a and or b to run only ONCE at initialization of the (and when I decide to swtich from one to the other) and remains constant. In the same way D updates only when a switch has been pressed.

    I failed to find resources too tracing data to the xygraph, and drawing a live data on top selectively.

    I have attached an outdated version of my front as reference. I would like suggestions. Thank you in advance.

    -JLS


  • Can I collect from each platform configuration data and place in separate by commas

    Can beta 3.0 v278 server and clients that are running the client software, using to get the
    information about these customers in comma separated format so I could put the data in a XLS
    worksheet or a url. ?  Information such as ip address, cpu.memory, netmask, applications etc?

    In the interest of those who read this thread who may not have seen the answers to the last question (in other threads):

    (1) plain ol ' Mozilla is not supported while Mozilla Firefox is supported. (This is the reason why the hypermike could not see the Actions of climbing).

    (2) in the Open Source of the HQ version you run control Actions on the tab control of a server or Service. You cannot trigger escalation control Actions.

    [In the subscription of the HQ version you can trigger actions of control within an alert definition].

  • drives great for groups of data and other files

    Hello

    I was asked to provide a large amount of storage through our cluster VM.  I was invited for between 100 and 200 terabytes and I was wondering if there is a way that vSphere can cope with this?  What I've read, you can not (LUN 32 x 2 TB) data from more than 64 to store, and you can't do a vmdisk more than 2 TB.

    Is there a way to bypass these limits?  Raw disk mapping allows large LUN?  Nobody knows when the limit of 2 TB Lun and vmdisks will change?

    Thank you!

    If your storage is iSCSI, you can use an initiator of software inside the virtual machine and use GPT disks more than 2 TB.

    If your storage is CF, you should use a dedicated HBA and VMDirectPath or try using NPIV (but I'm not sure that NPIV can use larger disks).

    André

  • Behavior of abnormal (Tag Date and place of automatic backup) RMAN script

    Hi all

    I have 11 GR 1 material running on Sun SOLARIS 10.

    The parameter default RMAN for backup of control file is on DISK (format: u02/oracle/backup/rman/control/%F.ctl)


    I have the RMAN script following (L0.rman):
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    tag backup "${CURRENT_DATETIME}" additional 0 filesperset 3 format 'DB_%T_%U.dbf' database more archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME) /';


    This is called by the following (L0.sh) script:
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME)
    RMAN nocatalog target / cmdfile = L0.rman log = L0_EDWH_$ CURRENT_DATETIME.log


    The anomalies are as follows:

    1. the backupsets are created with a literal tag "${CURRENT_DATETIME}" instead of "201010051915" - why?
    FYI, the command 'host' at the bottom of L0.rman successfully copies the file in the right directory (/ u02/oracle/backup/rman/201010051915 /).

    2. after the backup finishes, the automatic backup for the control and spfile is taken on SBT_TAPE instead of DISK - why?

    Any help will be appreciated.

    1. well, this $CURRENT_DATETIME is variable shell, RMAN does not interpret it (she can't and doesn't have to.) HOST calls the external commands by spawning the shell in non-interactive mode and when placing the order for her, and since you have exported the variable is available to all processes having engineered and develop properly, then files are copied in the expected location. If you remove the '; CURRENT_DATETIME export"from your shell script, you will see files copied in/u02/oracle/backup rman / / because the variable will not be in the environment of the layed shell (it will be local to the script) and will expand to the empty string. You must pass $CURRENT_DATETIME to the RMAN script as a variable substitution so that the shell expands it before calling RMAN, like this:

    L0. RMAN: {code}
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    backup format tag & 1 extra strength 0 filesperset 3 'DB_%T_%U.dbf' database archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman / $ CURRENT_DATETIME /';
    {code}
    L0.sh: {code}
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman / $ CURRENT_DATETIME
    RMAN nocatalog target / cmdfile = L0.rman using $CURRENT_DATETIME log = L0_EDWH_$ CURRENT_DATETIME.log
    {code}

    Note the * & 1 * variable substitution in the RMAN script and * using * keyword in the RMAN command line.

    2. control file record is taken to the same media, that the last backup, this is normal. You can't "CONFIGURE CONTROLFILE AUTOBACKUP ON the DISC" or something like that, you can only enable or disable it and specify format for various types of devices. Default device type does not play here, you are precisely the configured default device type substitution tape backup.

  • View threads AND grouped by date/conversation

    Hello

    I try to have messages see the thunderbird grouped by date (with a thread on today, yesterday, last week, etc.) and within these threads, see email conversations. A conversation that began three weeks ago, but has received a new email today is expected to manifest itself in the thread today, but from the first email of the conversation.
    I did not understand if it is possible, as grouped by (Date) and Threads are mutually exclusive. Any ideas?

    Thank you

    As you say, it is there only one group so at the time. So I guess that your out of luck.

    You could fill a better bug report and see if one of the developers interested. https://Bugzilla.Mozilla.org/

  • Photos Version 1.5 does not sort by date AND time

    I use a Macbook Air early 2015 running OS X El Capitan 10.11.5 & version 1.5 of the Photos. I took ~ 200 pictures at an event using a camera of 2 nights ago. I put the SD card in my camera in my Mac tonight and uploaded all the photos at a time. They are not in chronological order - arrrgghh!

    All photos were taken from Headquarters even of the same place the same evening. No adjustments were made at the time of the camera during the event. I checked the time / date stamp on the pictures - they are accurate, then I haven't adjusted their. The photos are simply in the random time sequence.

    I've read the support forums & tried to solve the problem by creating a record of the event, and then selecting all the photos, and then 'view' > 'fate' > 'keep sorted oldest first' and the order does not change.

    Can someone help me get these pictures in the order in which they were actually taken?

    Thank you!

    Photos sorts the images differently depending on which mode you are in.

    Special album 'All the Photos' is sorted by the date that the images have been added to your library.

    'Photos' special album is sorted based on the timestamp of image creation and organized automatically based on the date and place on Moments, the Collections and the years.

  • How to transfer pictures from iphone to PC and keep the date, time and place

    How to transfer pictures from iphone to PC and keep the date, time and place

    Hello Grumpelfuerer,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to import your photos from your iPhone 6 s, as well as for your Windows PC. I would like to save my photos on my computer as well. There are two ways to do this. You can use the iCloud photo library allowing to synchronize photos between your devices or import your photos to your PC using Windows Photo Gallery. This article will provide you with the steps that you can use for both options:

    Import photos and videos from your iPhone, iPad or iPod touch

    Best regards

  • I recently updated my iPhone to iOS 9.3 6s and now my data and wifi are in place. Now I can't open the apps and send messages with data and barely on the wifi. I've tried everything, and it still does not work.

    I updated my iPhone to iOS 9.3 6s today and now my data and wifi are in place. Whenever I try to open an app or send text messages with data it does not at all. And with wifi, it just works. I tried just like turn roaming off and off and other lte but nothing seems to work at all. Can someone please?

    I have this same problem too, it really gets me upset

  • groups of vCOps and historical data

    I create a group in the vSphere vCOps UI containing a number of virtual machines.

    Once I created the group, I can start to see the metrics from the group.

    However, it seems that when I view the settings for the group in the custom user interface, it is impossible to get all values from before the time that the Group has been created.

    For example, I create the Group on Feb. 1.  Virtual machines have given individual and metrics for them individually since their creation a months ago on January 1.

    However, when I create the group, it seems that vCOps fails to extract data before 1 February.

    For example, I want to get application CPU MHz for the whole group of virtual machines.  Even if the data to calculate the Group exist if vCOps was to review the historical data of the individual VM, vCOps shows only data at the point when the Group was created and not before.

    Is that a correct understanding of the limitation of the groups regarding the preparation of reports on historical data?

    What you describe is how all the resources in vCOps behave with respect to the collection of data (these attributes or supermetrics). Metrics will begin to collect according to the assigned package attributes/supermetrics once the resource is created. Historical data prior to this existing/recovery resource is not available.

    So I would call not this specific behavior of "groups" because that is how all resources behave with respect to the collection of data.

  • types of date and datetime with cfqueryparam

    How do you get a date and datetime type in a table with cfqueryparam?

    For the date, I tried < cfqueryparam value = #createodbcdate (thedate) # cfsqltype = 'CF_SQL_DATE' maxlength = null "23" = "yes" > and got NULL in the table.

    For once I tried < cfqueryparam value = #now () # cfsqltype = "CF_SQL_TIME" maxlength = null "23" = "yes" > but the date part of the datetime value is 1970-01-01.

    In the table, these column types are datetime.

    As its name suggests, cf_sql_date inserts the date. Any time value is truncated. To insert the date and time using cf_sql_timestamp.

    For the date, I tried<>

    value = #createodbcdate (theDate) # cfsqltype = 'CF_SQL_DATE '.

    MaxLength = "23" null = "yes" > and get NULL in the table.

    It's null = mean 'yes '. It loads CF to ignore the 'value' and insert a NULL value instead. Use it only if that is the intent.

  • Adding a date and time to create a channel in a data plugin

    I would like to preface this question with the fact that I am new to VBS programming.  What I want to do is to create a plugin. Most of it is done, but I'm having a problem with the addition of two times to a.  I have a text file that stores the date and time separated by a tab character.  This file format was designed to excel.  When I bring him both the date and time are in different channels and I can not figure out a way to add both and either replace them or even place it in a separate variable.  Here is an example.

    Chan (1) contains the date, Chan (2) contains both.  This statement, which places the data in the string is:

    The StandChannels value (0). Values (k) = Chan (1). Values (i)

    I tried:

    The StandChannels value (0). Values (k) = Chan (1). Values (i) + Chan (2). Values (i)

    error: object doesn't support this property or method

    or

    Chan (1). Values (i) = Chan (1). Values (i) + Chan (2). Values (i)

    error: object doesn't support this property or method

    I tried several other iterations and have had no success.  This seems to be an easy task, Miss me probably something simple.

    Hi Eric,.

    The first problem is that your datetime format string was wrong, you need to use:

    File.Formatter.TimeFormat = "MM/DD/YY SS.fff.

    Or maybe if your year is first of all it must be:

    File.Formatter.TimeFormat = "YY/MM/DD SS.fff.

    The second question was slippery.  The newsgroups (0) you throw combines the ProcessedChannel values correctly, but you were not successfully picking off those that you wanted to leave Chan (0).  I don't really know why the method you were using did not work, but I found a similar one that does.  Note that I've only changes part SUB New_File (file, ChanNames) of the code, not the SUB Previous_File (file, ChanNames) part of the code (got tired of typing).

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • GROUP BY date range to identify duplicates revisited!

    Good afternoon

    It is a continuation of the previous discussion, I previously created GROUP BY date range to identify duplicates

    Your help with the following would be appreciated (examples of data below)

    I've highlighted what I mark as returned to double as below:

    example4.jpg

    Definition of duplicate (However, this is slightly different to the previous post)

    the same account_num

    maximum 20 days apart tran_effective_date

    tran_processed_date maximum 10 days apart

    the same tran_amount

    However, I do not want to return a duplicate if they have both a tran_priced_date filled.

    So, in light of the foregoing, I don't expect the following account_numbers to be marked as duplicate:

    N100283 - one of the records has populated trab_priced_date

    N101640 - none of the records have the tran_priced_date filled

    N102395 - same as N101640

    N102827 - same as N101640

    N108876 - although the two documents have the populated tran_priced_date, the tran_effective_dates are more than 20 days apart.

    BUT for the rest of the accounts, N100284 and N102396 I want to execute the following logic

    Compare the 3rd rank in 4th place and ask the following questions:

    Is tran_effective_date to a maximum of 20 days out?

    Is tran_processed_date maximum 10 days apart?

    If yes then report it as dupe

    Compare line 4 to 5, then ask the same question until you get to the line 4 or 5. When everything is done, I want to examine only the transactions that have the status of normal and if the above question is true for both and then return to my game of result as dupes.

    I hope that makes sense!

    BEGIN
      EXECUTE IMMEDIATE 'DROP TABLE samp_data';
    EXCEPTION
      WHEN OTHERS THEN
        IF SQLCODE = -942 THEN
          DBMS_OUTPUT.put_line('');
        ELSE
          RAISE;
        END IF;
    END;
    /
    
    
    CREATE TABLE samp_data (
      ACCOUNT_NUM             VARCHAR2(17),
      TRAN_ID                 NUMBER(10),
      TRAN_TYPE               VARCHAR2(50),
      TRAN_EFFECTIVE_DATE     TIMESTAMP(6),
      TRAN_PROCESSED_DATE     TIMESTAMP(6),
      TRAN_STATUS             VARCHAR2(17),
      TRAN_PRICED_DATE        TIMESTAMP(6),
      TRAN_AMOUNT             NUMBER(13,2)
      );
    /
    
    
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N100283',140119178,'Regular With',to_timestamp('01-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 07.00.34.235000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('21-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),200);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE,TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N100283',140158525,'Regular With',to_timestamp('13-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('26-MAY-15 08.39.14.090000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'Normal', null,200);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N100284',140118826,'Regular With',to_timestamp('03-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 07.00.19.072000000 AM','DD-MON-RR HH.MI.SS.FF AM'),'Normal', to_timestamp('20-MAY-15 03.25.05.438000000 AM','DD-MON-RR HH.MI.SS.FF AM'),450);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N100284',140158120,'Regular With',to_timestamp('06-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('23-MAY-15 08.38.42.064000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Reversed', to_timestamp('21-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),450);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N100284',140158120,'Regular With',to_timestamp('06-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('02-JUN-15 08.38.42.064000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('31-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),450);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N101640',140118957,'Regular With',to_timestamp('18-MAY-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 07.00.25.015000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', null,120);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N101640',140158278,'Regular With',to_timestamp('22-MAY-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('26-MAY-15 08.38.56.228000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', null,130);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102395',140118842,'Regular With',to_timestamp('03-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 07.00.19.665000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', null,250);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102395',140158235,'Regular With',to_timestamp('03-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('26-MAY-15 08.38.53.093000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', null,250);
    
    
    
    
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102396',140118823,'Regular With',to_timestamp('09-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('18-MAY-15 07.00.18.931000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('19-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),750);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102396',140158099,'Regular With',to_timestamp('16-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('24-MAY-15 08.38.39.443000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Reversed', to_timestamp('21-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),750);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102396',140158099,'Regular With',to_timestamp('16-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('29-MAY-15 08.38.39.443000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('30-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),750);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102396',140158099,'Regular With',to_timestamp('12-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 08.38.39.443000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Reversed', to_timestamp('30-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),750);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102396',140158099,'Regular With',to_timestamp('14-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('23-MAY-15 08.38.39.443000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Reversed', to_timestamp('30-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),750);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102827',140118850,'Regular With',to_timestamp('03-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('22-MAY-15 07.00.20.045000000 AM','DD-MON-RR HH.MI.SS.FF AM') , 'Normal',null,157.84);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N102827',140158118,'Regular With',to_timestamp('03-JUN-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('26-MAY-15 08.38.41.861000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', null,157.84);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N108876',139840720,'Regular With',to_timestamp('01-MAY-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('11-MAY-15 08.35.34.646000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('20-MAY-15 03.25.05.438000000 AM','DD-MON-RR HH.MI.SS.FF AM'),1000);
    Insert into samp_data (ACCOUNT_NUM,TRAN_ID,TRAN_TYPE,TRAN_EFFECTIVE_DATE,TRAN_PROCESSED_DATE, TRAN_STATUS, TRAN_PRICED_DATE,TRAN_AMOUNT) 
    values ('N108876',139889880,'Regular With',to_timestamp('22-MAY-15 12.00.00.000000000 AM','DD-MON-RR HH.MI.SS.FF AM'),to_timestamp('12-MAY-15 08.49.29.080000000 AM','DD-MON-RR HH.MI.SS.FF AM'), 'Normal', to_timestamp('21-MAY-15 03.26.18.954000000 AM','DD-MON-RR HH.MI.SS.FF AM'),1000);
    /
    
    
    select * from samp_data
    ORDER BY account_num, tran_effective_date, tran_processed_date;
    

    PL continue the discussion in your original post

  • DBCA SHOWING NO DATA AND FRA... Help, please?

    Hi, I was trying the new installation of Oracle 11 g. Executing command (DBCA), to the DATA CONFIGURATION WIZARD, step 6 of 12: location of the database files. In the database box, I click to BROSE BUTTON but it does not show DATA or FRA. You will find the attached screenshot for more clear.

    databasearea.png

    PROBLEM WAS SOLVED... because we know that /dev/raw / * must contain the ORACLE as USER AND OINSTALL as a GROUP in order to distribute the ASM for DATA and FRA... No ONE including ME REMARQUERAIT the USER AND GROUP that I presented above. I am again submitting the above information here as well, or you can check the same information [root@example dev] # ls - ld/dev/raw / * of the above. So this is what the user and group was before. Because to show DATA AND FRA drive to the title of the ASM, the/dev/RAW/expected to be under ORACLE as USER AND OINSTALL as GROUP but before /dev/raw / * was under ROOT as USER and DRIVE as a GROUP and because of this it was not showing the DATA and FRA assigned disk while using the DBCA COMMAND

    [root@example dev] # ls - ld/dev/raw / *.

    CRW - rw-. 1 root disk 162, 1 Jan 29 21:29 / dev/raw/raw1

    CRW - rw-. 1 root disk 162, 2 Jan 29 21:29 / dev/raw/raw2

    CRW - rw-. 1 root disk 162, 3 Jan 29 21:29 / dev/raw/raw3

    CRW - rw-. 1 root disk 162, 4 Jan 29 21:29 / dev/raw/raw4

    CRW - rw-. 1 root disk 162, 5 Jan 29 21:29 / dev/raw/raw5

    CRW - rw-. 1 root disk 162, 6 Jan 29 21:29 / dev/raw/raw6

    CRW - rw-. 1 oracle oinstall 162, 0 Jan 29 21:29 / dev/raw/rawctl

    THE MAIN PROBLEM in MY CASE WAS ON AFTER, if you give OR type chown-r oracle: oinstall/dev/raw, chmod 770/dev/raw, chmod 660/dev/raw/raw * MANUALLY then it will display the correct GROUPS and USERS

    [root@example Desktop] # chown r oracle: oinstall/dev/raw

    [root@example Desktop] # chmod 770/dev/raw

    [root@example Desktop] # chmod 660/dev/raw/raw *.

    [root@example Desktop] # ls - ld/dev/raw / *.

    CRW - rw-. 1 oracle oinstall 162, 1 Jan 30 09:35 / dev/raw/raw1

    CRW - rw-. 1 oracle oinstall 162, 2 Jan 30 09:35 / dev/raw/raw2

    CRW - rw-. 1 oracle oinstall 162, 3 Jan 30 09:35 / dev/raw/raw3

    CRW - rw-. 1 oracle oinstall 162, 4 Jan 30 09:35 / dev/raw/raw4

    CRW - rw-. 1 oracle oinstall 162, 5 Jan 30 09:35 / dev/raw/raw5

    CRW - rw-. 1 oracle oinstall 162, 6. Jan 30 09:35 / dev/raw/raw6

    CRW - rw-. 1 oracle oinstall 162, 0 Jan 30 09:16 / dev/raw/rawctl

    [root@example Desktop] #.

    WHILE

    If you the same things chown-r oracle: oinstall/dev/raw, chmod 770/dev/raw, chmod 660/dev/raw/raw * in /etc/rc.d/rc.local then it shows USERS and DRIVE as root and disc.

    [root@example ~] vi /etc/rc.d/rc.local

    ! / bin/sh

    #

    # This script will be executed * after * all the other init scripts.

    # You can put your own stuff of initialization here if you do not

    # want to do the full Sys V style init stuff.

    touch/var/lock/subsys/local

    / dev/raw/raw1 gross/dev/sda11

    / dev/raw/raw2 gross/dev/sda12

    / dev/raw/raw3 gross/dev/sda13

    / dev/raw/raw4 gross/dev/sda14

    / dev/raw/raw5 gross/dev/sda15

    / dev/raw/raw6 gross/dev/sda16

    chown-r oracle: oinstall/dev/raw

    chmod 770/dev/raw

    chmod 660/dev/raw/raw *.

    [root@example dev] # reboot or refresh

    AFTER THEN AGAIN if YOU CHECK the USER AND the GROUP using ls - ld/dev/raw / * then his root watch and the disk commands as the user and group. It shows the root and the disc where it should be ORACLE and OINSTALL under USERS and GROUPS. I couldn't find the reason why even after put chown-r oracle: oinstall/dev/raw, chmod 770/dev/raw, chmod 660/dev/raw/raw * shows the wrong USER AND GROUP?

    [root@example dev] # ls - ld/dev/raw / *.

    CRW - rw-. 1 root disk 162, 1 Jan 29 21:29 / dev/raw/raw1

    CRW - rw-. 1 root disk 162, 2 Jan 29 21:29 / dev/raw/raw2

    CRW - rw-. 1 root disk 162, 3 Jan 29 21:29 / dev/raw/raw3

    CRW - rw-. 1 root disk 162, 4 Jan 29 21:29 / dev/raw/raw4

    CRW - rw-. 1 root disk 162, 5 Jan 29 21:29 / dev/raw/raw5

    CRW - rw-. 1 root disk 162, 6 Jan 29 21:29 / dev/raw/raw6

    CRW - rw-. 1 oracle oinstall 162, 0 Jan 29 21:29 / dev/raw/rawctl

    SO HERE'S WHAT I DID... THE SOLUTION WORKING for me is that I created the shell script file named test.sh.

    STEP 1: CREATE the SHELL SCRIPT FILE test.sh

    [root@example Desktop] # cat /root/test.sh

    chown-r oracle: oinstall/dev/raw

    chmod 770/dev/raw

    chmod 660/dev/raw/raw *.

    STEP 2: Place rc.local file test.sh

    [root@example ~] vi /etc/rc.d/rc.local

    ! / bin/sh

    #

    # This script will be executed * after * all the other init scripts.

    # You can put your own stuff of initialization here if you do not

    # want to do the full Sys V style init stuff.

    touch/var/lock/subsys/local

    / dev/raw/raw1 gross/dev/sda11

    / dev/raw/raw2 gross/dev/sda12

    / dev/raw/raw3 gross/dev/sda13

    / dev/raw/raw4 gross/dev/sda14

    / dev/raw/raw5 gross/dev/sda15

    / dev/raw/raw6 gross/dev/sda16

    /root/test.sh

    STEP 3: REFRESH rc.local or you can RESTART the pc once more

    [root@example Desktop] # /etc/rc.d/rc.local

    STEP 4: CHECK the USERS and GROUPS as mentioned below: -.

    [root@example Desktop] # ls - ld/dev/raw / *.

    CRW - rw-. 1 oracle oinstall 162, 1 Jan 30 09:35 / dev/raw/raw1

    CRW - rw-. 1 oracle oinstall 162, 2 Jan 30 09:35 / dev/raw/raw2

    CRW - rw-. 1 oracle oinstall 162, 3 Jan 30 09:35 / dev/raw/raw3

    CRW - rw-. 1 oracle oinstall 162, 4 Jan 30 09:35 / dev/raw/raw4

    CRW - rw-. 1 oracle oinstall 162, 5 Jan 30 09:35 / dev/raw/raw5

    CRW - rw-. 1 oracle oinstall 162, 6. Jan 30 09:35 / dev/raw/raw6

    CRW - rw-. 1 oracle oinstall 162, 0 Jan 30 09:16 / dev/raw/rawctl

    [root@example Desktop] #.

    asmca $ [grid@example Desktop]

    DATA AND FRA PROBLEM SOLVED

  • International date and time

    Last week, I was in the United States and took a lot of pictures.  Now that I'm back in Australia, Photos has automatically adjusted the time and date of the pictures to what was the time in Australia, not the time it was when I took the pictures.  It's incredibly annoying.  Does anyone know how to fix this please? Thank you very much.

    Hello! I had the same problem. I took photos in Asia, some on them without location data. I imported on my Mac at home in France. And then, something went wrong with the date and time. As I've learned here for photos without location data, Photos uses the time zone of the place where you perform the import. If had imported the photos in the same zone where I took them, everything would have been fine.

    The solution was to select all the photos and then manually set their time zone in Malaysia where I took them. You can do this with "setting date and time" to the 'Image' (or 'Photos' menu, or however, it is called in English).

Maybe you are looking for