---
title: "Alter Session \u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8 (alterSessionStatement)"
description: "\u73FE\u5728\u306EInvantive UniversalSQL\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u5909\u66F4\u3059\u308B\u3055\u307E\u3056\u307E\u306A\u30B9\u30C6\u30FC\u30C8\u30E1\u30F3\u30C8\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/grammar/statement-types/alter-session-statement-altersessionstatement
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/statement-types/alter-session-statement-altersessionstatement
updated: 2026-12-04T15:04:07Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> alterSessionStatement
    alterSessionStatement -->| | alterSessionSetStatement
    alterSessionSetStatement --> End((END))
```

## 目的

現在のInvantive UniversalSQLセッションのプロパティを変更するさまざまなステートメント。

## alterSessionSetStatement

```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart TD
    alterSessionSetStatement_start((START))
    alterSessionSetStatement_start --> alterSessionSetStatement_0_0[ALTER]:::quoted
    alterSessionSetStatement_0_0 --> alterSessionSetStatement_0_1[SESSION]:::quoted
    alterSessionSetStatement_0_1 --> alterSessionSetStatement_0_2[SET]:::quoted
    alterSessionSetStatement_0_2 --> alterSessionSetStatement_0_3[alterSessionSetBillingId]
    alterSessionSetStatement_0_3 --> alterSessionSetStatement_0_4[alterSessionSetBillingReference]
    alterSessionSetStatement_0_4 --> alterSessionSetStatement_0_5[alterSessionSetIuidSourceAlias]
    alterSessionSetStatement_0_5 --> alterSessionSetStatement_0_6[alterSessionSetRoles]
    alterSessionSetStatement_0_6 --> alterSessionSetStatement_end((END))
```

## 目的

現在のInvantive UniversalSQLセッションのプロパティを変更します。

## alterSessionSetBillingId

```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterSessionSetBillingId_start((START))
    alterSessionSetBillingId_start --> alterSessionSetBillingId_0_0[BILLING]:::quoted
    alterSessionSetBillingId_0_0 --> alterSessionSetBillingId_0_1[ID]:::quoted
    alterSessionSetBillingId_0_1 --> alterSessionSetBillingId_0_2[expression]
    alterSessionSetBillingId_0_2 --> alterSessionSetBillingId_end((END))
```

## 目的

ライセンスで規定されたとおり、利用料金を別の契約に請求するために使用するIDを変更します。 Invantive製品のホスト型利用に限って、ダウンロードされたデータ、アップロードされたデータ、ユーザー、デバイス、パーティションの利用に関する利用統計を、個別の請求IDに関連付けるために使用します。 元の契約コードも登録されます。

## alterSessionSetBillingReference

```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterSessionSetBillingReference_start((START))
    alterSessionSetBillingReference_start --> alterSessionSetBillingReference_0_0[BILLING]:::quoted
    alterSessionSetBillingReference_0_0 --> alterSessionSetBillingReference_0_1[REFERENCE]:::quoted
    alterSessionSetBillingReference_0_1 --> alterSessionSetBillingReference_0_2[expression]
    alterSessionSetBillingReference_0_2 --> alterSessionSetBillingReference_end((END))
```

## 目的

1つの契約内でアプリケーション、部門、または事業会社ごとの利用を区別するために、請求用の参照を追加します。 通常は、より大規模な組織がInvantive製品を利用する場合に使用され、ダウンロードされたデータ、アップロードされたデータ、ユーザー、デバイス、パーティションの利用に関する利用統計を、個別の請求参照に関連付けます。

## alterSessionSetIuidSourceAlias

```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterSessionSetIuidSourceAlias_start((START))
    alterSessionSetIuidSourceAlias_start --> alterSessionSetIuidSourceAlias_0_0[IUID]:::quoted
    alterSessionSetIuidSourceAlias_0_0 --> alterSessionSetIuidSourceAlias_0_1[SOURCE]:::quoted
    alterSessionSetIuidSourceAlias_0_1 --> alterSessionSetIuidSourceAlias_0_2[expression]
    alterSessionSetIuidSourceAlias_0_2 --> alterSessionSetIuidSourceAlias_end((END))
```

## 目的

デフォルト以外のデータコンテナを使用して、ユーザーを識別するために使われるIUID（Invantive User ID）の値を決定します。 通常は、実際のユーザーが、より大きな番号のデータコンテナのユーザーディレクトリに存在する場合に使用されます。

## alterSessionSetRoles

```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    alterSessionSetRoles_start((START))
    alterSessionSetRoles_start --> alterSessionSetRoles_0_0[ROLES]:::quoted
    alterSessionSetRoles_0_0 --> alterSessionSetRoles_0_1[DEFAULT]:::quoted
    alterSessionSetRoles_0_1 --> alterSessionSetRoles_0_2[roleIdentifier]
    alterSessionSetRoles_0_2 --> alterSessionSetRoles_0_3[","]:::quoted
    alterSessionSetRoles_0_3 --> alterSessionSetRoles_0_4[roleIdentifier]
    alterSessionSetRoles_0_4 --> alterSessionSetRoles_end((END))
```

## 目的

Invantive UniversalSQLは、カスタムコネクタによる行レベルセキュリティを含む高度なセキュリティ機能を提供します。 セッションのアクティブなロールを設定します。

